private static double GetExifRational(Tiff.ImageDirectory directory, Tiff.TagId id) { if (directory == null) { return(0); } Tiff.DirectoryEntry entry = directory.Lookup(id); if (entry == null) { return(-1); } return(entry.RationalValue [0].Value); }
private static string GetExifString(Tiff.ImageDirectory directory, Tiff.TagId id) { if (directory == null) { return(null); } Tiff.DirectoryEntry entry = directory.Lookup(id); if (entry == null) { return(null); } return(entry.ValueAsString [0]); }