Attach a new FreeImage tag to a dib.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool SetMetadata(
	FREE_IMAGE_MDMODEL model,
	FIBITMAP dib,
	string key,
	FITAG tag
)
Visual Basic (Declaration)
Public Shared Function SetMetadata ( _
	model As FREE_IMAGE_MDMODEL, _
	dib As FIBITMAP, _
	key As String, _
	tag As FITAG _
) As Boolean
Visual C++
public:
static bool SetMetadata(
	FREE_IMAGE_MDMODEL model, 
	FIBITMAP dib, 
	String^ key, 
	FITAG 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..::.FITAG
The FreeImage tag to be attached.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also