Represents a dictionary of EXIF fields.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class ExifDictionary : MetadataDictionary, ICloneable
The code below demonstrates how to extract and display both EXIF and IPTC data.
using (var jpegReader = new JpegReader(@"Images\in.jpg")) { //Read metadata var exif = jpegReader.Exif; var iptc = jpegReader.Iptc; //Show EXIF tags if (exif != null) { Console.WriteLine("EXIF"); Console.WriteLine("---------------"); foreach (long key in exif.Keys) { Console.WriteLine("{0}: {1}, {2}", exif.GetKeyDescription(key), exif[key], exif.GetItemString(key)); } } //Show IPTC tags if (iptc != null) { Console.WriteLine("IPTC"); Console.WriteLine("---------------"); foreach (long key in iptc.Keys) { Console.WriteLine("{0}: {1}, {2}", iptc.GetKeyDescription(key), iptc[key], iptc.GetItemString(key)); } } }