Exemple #1
0
 private static void DisplayExif(ExifNET.Exif exif)
 {
     foreach (var property in exif.GetType().GetProperties())
     {
         System.Console.WriteLine("\t{0}={1}", property.Name, property.GetValue(exif, null));
     }
 }
Exemple #2
0
 private static void DisplayFileExif(string file)
 {
     using (var image = Image.FromFile(file))
     {
         var exif = new ExifNET.Exif(image.PropertyItems);
         DisplayExif(exif);
     }
 }