Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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]);
        }