FreeImage.NET Class Library Reference
WICMetadataHandlerRemoveQuery Method |
Removes a metadata query from an instance of BitmapMetadata.
Namespace: FreeImageAPI.Metadata
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void RemoveQuery( string query )
Parameters
- query
- Type: SystemString
The metadata query to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | query is null. |
InvalidOperationException | Occurs when image metadata is read-only. |
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