Click or drag to resize
WICMetadataHandlerGetQuery Method
Provides access to a metadata query reader that can extract metadata from a bitmap image file.

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

Parameters

query
Type: SystemString
Identifies the string that is being queried in the current BitmapMetadata object.

Return Value

Type: Object
The metadata at the specified query location.
Exceptions
ExceptionCondition
ArgumentNullExceptionquery is null.
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