Ejemplo n.º 1
0
        private static int?GetOrientation(Directory directory)
        {
            try
            {
                return(directory?.GetInt32(ExifDirectoryBase.TagOrientation));
            }
            catch (Exception)
            {
                // ignored
            }

            return(null);
        }
Ejemplo n.º 2
0
        private static int?GetHeight(Directory directory)
        {
            int[] tags = { ExifDirectoryBase.TagImageHeight, ExifDirectoryBase.TagExifImageHeight };

            foreach (var tag in tags)
            {
                try
                {
                    return(directory?.GetInt32(tag));
                }
                catch (Exception)
                {
                    // ignored
                }
            }

            return(null);
        }