Beispiel #1
0
        public string GetPropertyString(ExifTagNames exifTag)
        {
            string result = "";
            if (IsPropertyDefined(exifTag))
                result = GetString(_image.GetPropertyItem((int)exifTag).Value);
            if (result.EndsWith("\0"))
                result = result.Substring(0, result.Length - 1);

            return result;
        }
Beispiel #2
0
 public bool IsPropertyDefined(ExifTagNames exifTag)
 {
     return Array.IndexOf(_image.PropertyIdList, (int)exifTag) > -1;
 }
Beispiel #3
0
        public int GetPropertyInt32(ExifTagNames exifTag)
        {
            int result = 0;
            if (IsPropertyDefined(exifTag))
                result = GetInt32(_image.GetPropertyItem((int)exifTag).Value);

            return result;
        }