Adds new tag to the bitmap or updates its value in case it already exists.
Key will be used as key.
Namespace:
FreeImageAPI.MetadataAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | tag is null. |
| System..::.ArgumentException | The tags model differs from this instances model. |