Exemplo n.º 1
0
        public void ReadIFDHeader(ExifHeader headerType, uint headerPosition, ExifPhoto photo)
        {
            SeekToTiffHeaderRelativeOffset(headerPosition);
            var numberOfTags = _binaryReader.ReadUInt16();

            for (var i = 0; i < numberOfTags; i++)
            {
                var tag = _binaryReader.ReadUInt16();
                if (ExifPhoto.HasMatchingProperty(tag, headerType))
                {
                    ReadTag(tag, headerType, photo);
                    if (!photo.HasUnsetProperties(headerType))
                    {
                        break;
                    }
                }
                else
                {
                    MoveToTheNextTag();
                }
            }
        }
Exemplo n.º 2
0
 public void ReadIFDHeader(ExifHeader headerType, uint headerPosition, ExifPhoto photo)
 {
     SeekToTiffHeaderRelativeOffset(headerPosition);
     var numberOfTags = _binaryReader.ReadUInt16();
     for (var i = 0; i < numberOfTags; i++) {
         var tag = _binaryReader.ReadUInt16();
         if (ExifPhoto.HasMatchingProperty(tag, headerType)) {
             ReadTag(tag, headerType, photo);
             if (!photo.HasUnsetProperties(headerType)) break;
         } else
             MoveToTheNextTag();
     }
 }