WICMetadataHandler Class

FreeImage.NET

WICMetadataHandler Class
Windows Imaging Component Metadata Handler. See BitmapMetadata.
Inheritance Hierarchy
SystemObject  FreeImageAPI.MetadataWICMetadataHandler

Namespace: FreeImageAPI.Metadata
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public class WICMetadataHandler

The WICMetadataHandler type exposes the following members.

Constructors
  NameDescription
Public methodWICMetadataHandler
Initializes a new instance of the WICMetadataHandler class
Top
Properties
  NameDescription
Public propertyApplicationName
Gets or sets a value that identifies the name of the application that was used to construct or alter an image file.
Public propertyAuthor
Gets or sets a value that represents the author of an image.
Public propertyCameraManufacturer
Gets or sets a value that identifies the camera manufacturer that is associated with an image.
Public propertyCameraModel
Gets or sets a value that identifies the camera model that was used to capture the image.
Public propertyComment
Comment Gets or sets a value that represents a comment that is associated with the image file.
Public propertyCopyright
Gets or sets a value that indicates copyright information that is associated with the image file.
Public propertyDateTaken
Gets or sets a value that indicates the date that the image was taken.
Public propertyKeywords
Gets or sets a collection of keywords that describe the bitmap image.
Public propertyRating
Gets or sets a value that identifies the image rating.
Public propertySubject
Gets or sets a value that indicates the subject matter of the bitmap image.
Public propertyTitle
Gets or sets a value that identifies the title of an image file.
Top
Methods
  NameDescription
Public methodCode exampleContainsQuery
Determines whether a given query string exists within a BitmapMetadata object.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodCode exampleGetQuery
Provides access to a metadata query reader that can extract metadata from a bitmap image file.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleRemoveQuery
Removes a metadata query from an instance of BitmapMetadata.
Public methodSave
Saves the metadata to the underlying FreeImageBitmap. Modified metadata is not saved until this method is called.
Public methodCode exampleSetQuery
Provides access to a metadata query writer that can write metadata to a bitmap image file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Modified metadata isn't saved to the FreeImageBitmap until the Save-Method is called.

This class is not supported on Mono.

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