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); }
private void InitializeValues() { if (_data != null) { return; } var data = GetData(); if (data == null) { _data = new ExifData(); return; } _data = ExifReader.Read(data); }
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; }
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; }