Retrieve a metadata attached to a FreeImage bitmap.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool GetMetadata( FREE_IMAGE_MDMODEL model, FIBITMAP dib, string key, out MetadataTag tag ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetMetadata ( _ model As FREE_IMAGE_MDMODEL, _ dib As FIBITMAP, _ key As String, _ <OutAttribute> ByRef tag As MetadataTag _ ) As Boolean |
Visual C++ |
---|
public: static bool GetMetadata( FREE_IMAGE_MDMODEL model, FIBITMAP dib, String^ key, [OutAttribute] MetadataTag^% tag ) |
Parameters
- model
- Type: FreeImageAPI..::.FREE_IMAGE_MDMODEL
The metadata model to look for.
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- key
- Type: System..::.String
The metadata field name.
- tag
- Type:
FreeImageAPI.Metadata..::.MetadataTag
%
A MetadataTag structure returned by the function.
Return Value
Returns true on success, false on failure.Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | dib is null. |