WICMetadataHandler.SetQuery Method

FreeImage.NET

WICMetadataHandlerSetQuery Method
Provides access to a metadata query writer that can write metadata to a bitmap image file.

Namespace: FreeImageAPI.Metadata
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void SetQuery(
	string query,
	Object value
)

Parameters

query
Type: SystemString
Identifies the location of the metadata to be written.
value
Type: SystemObject
The value of the metadata to be written.
Examples
using (FreeImageBitmap fib = new FreeImageBitmap(path))
{
    WICMetadataHandler metadata = fib.GetWICMetadataHandler();
    metadata.DateTaken = DateTime.Now;
    metadata.Comment = "Hallo";
    object alt = metadata.GetQuery("System.GPS.Latitude");
    metadata.Save();
}
See Also