Example #1
0
        public static ExifData Read(byte[] data)
        {
            if (data == null || data.Length == 0)
            {
                return(new ExifData());
            }

            var reader = new ExifReader(data);

            reader.Read();

            return(reader._data);
        }
Example #2
0
        private void InitializeValues()
        {
            if (_data != null)
            {
                return;
            }

            var data = GetData();

            if (data == null)
            {
                _data = new ExifData();
                return;
            }

            _data = ExifReader.Read(data);
        }
Example #3
0
        private void InitializeValues()
        {
            if (_values != null)
            {
                return;
            }

            if (Data == null)
            {
                _values = new Collection <IExifValue>();
                return;
            }

            var reader = new ExifReader();

            _values          = reader.Read(Data);
            _invalidTags     = new List <ExifTag>(reader.InvalidTags);
            _thumbnailOffset = (int)reader.ThumbnailOffset;
            _thumbnailLength = (int)reader.ThumbnailLength;
        }
Example #4
0
        private void InitializeValues()
        {
            if (_values != null)
            {
                return;
            }

            var data = GetData();

            if (data == null)
            {
                _values = new List <IExifValue>();
                return;
            }

            var reader = new ExifReader();

            reader.Read(data);

            _values          = reader.Values;
            _invalidTags     = reader.InvalidTags;
            _thumbnailOffset = (int)reader.ThumbnailOffset;
            _thumbnailLength = (int)reader.ThumbnailLength;
        }