Attach a new metadata tag to a FreeImage bitmap.
Namespace:
FreeImageAPI
Assembly:
FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool SetMetadata( FREE_IMAGE_MDMODEL model, FIBITMAP dib, string key, MetadataTag tag ) |
Visual Basic (Declaration) |
---|
Public Shared Function SetMetadata ( _ model As FREE_IMAGE_MDMODEL, _ dib As FIBITMAP, _ key As String, _ tag As MetadataTag _ ) As Boolean |
Visual C++ |
---|
public: static bool SetMetadata( FREE_IMAGE_MDMODEL model, FIBITMAP dib, String^ key, MetadataTag^ tag ) |
Parameters
- model
- Type: FreeImageAPI..::.FREE_IMAGE_MDMODEL
The metadata model used to store the tag.
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- key
- Type: System..::.String
The tag field name.
- tag
- Type: FreeImageAPI.Metadata..::.MetadataTag
The MetadataTag to be attached.
Return Value
Returns true on success, false on failure.Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | dib is null. |