Adds new tag to the bitmap or updates its value in case it already exists. Key will be used as key.

Namespace:  FreeImageAPI.Metadata
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public bool AddTag(
	MetadataTag tag
)
Visual Basic (Declaration)
Public Function AddTag ( _
	tag As MetadataTag _
) As Boolean
Visual C++
public:
bool AddTag(
	MetadataTag^ tag
)

Parameters

tag
Type: FreeImageAPI.Metadata..::.MetadataTag
The tag to add or update.

Return Value

Returns true on success, false on failure.

Exceptions

ExceptionCondition
System..::.ArgumentNullException tag is null.
System..::.ArgumentException The tags model differs from this instances model.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also