Retrieve a metadata attached to a FreeImage bitmap.

Namespace:  FreeImageAPI
Assembly:  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

ExceptionCondition
System..::.ArgumentNullException dib is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also