FreeImage.NET Class Library Reference
FreeImageSetMetadata Method (FREE_IMAGE_MDMODEL, FIBITMAP, String, MetadataTag) |
Attach a new metadata tag to a FreeImage bitmap.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SetMetadata( FREE_IMAGE_MDMODEL model, FIBITMAP dib, string key, MetadataTag tag )
Parameters
- model
- Type: FreeImageAPIFREE_IMAGE_MDMODEL
The metadata model used to store the tag. - dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - key
- Type: SystemString
The tag field name. - tag
- Type: FreeImageAPI.MetadataMetadataTag
The MetadataTag to be attached.
Return Value
Type: BooleanReturns true on success, false on failure.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | dib is null. |
See Also