MetadataDictionary Class

Represents a dicitonary of image metadata, such as EXIF, IPTC, etc.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


public abstract class MetadataDictionary : IDictionary, IDisposable


This abstract class contains partial implementation of the ExifDictionary, IptcDictionary, and AdobeResourceDictionary classes. It is used to read, write, and modify metadata stored in images.

Metadata is stored as pairs of keys and values. Key is an EXIF/IPTC tag or image block ID, value is an actual value stored at this key. To get a piece of data from the collection use property Item[Object] or method GetItemArray(Object) (for several items). To check whether an item with certain key is available at the dictionary, you can use Contains(Object) method. You can also get all keys or all values through Keys or Values property correspondingly. For easier displaying, you can convert key into human-readable text string using GetKeyDescription(Object) method.

Typically you get this class instance from Exif, Iptc, or AdobeResources property of the ImageReader. You can also create a new empty instance of ExifDictionary, IptcDictionary or AdobeResourceDictionary class and put necessary details using Add(Object, Object) method. After that you can put this dictionary into Exif, Iptc or AdobeResources property of the JpegWriter or TiffWriter class. This way you can save updated EXIF data into the image file.

Inheritance Hierarchy

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also