예제 #1
0
 public void SetMatchingProperty(uint tag, ExifHeader headerType, object value)
 {
     var exifAttribute = new ExifAttribute(tag, headerType);
     if (!_exifAttributesCache.ContainsKey(exifAttribute)) return;
     var propertyName = _exifAttributesCache[exifAttribute];
     var propertyInfo = this.GetType().GetProperty(propertyName);
     propertyInfo.SetValue(this, value, null);
     _unsetProperties[headerType]--; //this is based on the assumption that Exif tags in the jpg are unique
 }          
예제 #2
0
        public void SetMatchingProperty(uint tag, ExifHeader headerType, object value)
        {
            var exifAttribute = new ExifAttribute(tag, headerType);

            if (!_exifAttributesCache.ContainsKey(exifAttribute))
            {
                return;
            }
            var propertyName = _exifAttributesCache[exifAttribute];
            var propertyInfo = this.GetType().GetProperty(propertyName);

            propertyInfo.SetValue(this, value, null);
            _unsetProperties[headerType]--; //this is based on the assumption that Exif tags in the jpg are unique
        }
예제 #3
0
 public static bool HasMatchingProperty(uint tag, ExifHeader headerType)
 {
     var exifAttribute = new ExifAttribute(tag, headerType);
     return _exifAttributesCache.ContainsKey(exifAttribute);
 }
예제 #4
0
        public static bool HasMatchingProperty(uint tag, ExifHeader headerType)
        {
            var exifAttribute = new ExifAttribute(tag, headerType);

            return(_exifAttributesCache.ContainsKey(exifAttribute));
        }