FreeImage.NET Class Library Reference
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: ObjectThe metadata at the specified query location.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | query 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