Geting/seting properties on files.
-
Does anyone know how I can get (and eventually set) the properties of a file. I have some pictures take with a digital camera. In all the pictures properties (attributes?) are set for lot o things. E.g. Widht, Height, Bit Depth, Flash Mode, Focal Length, etc... I guess that the attributes are dynamic. But how can I read them using the Framework? I have not been able to find the attributes using a FileInfo-object. I have seen someone doing this on the net using a COM-object with prog-id "DSOLEFILE.PropertyReader". Do I have to use this in stead? And in that case where can I find it? :wtf: X| :sigh::doh: Thanks in advance, Mattias
-
Does anyone know how I can get (and eventually set) the properties of a file. I have some pictures take with a digital camera. In all the pictures properties (attributes?) are set for lot o things. E.g. Widht, Height, Bit Depth, Flash Mode, Focal Length, etc... I guess that the attributes are dynamic. But how can I read them using the Framework? I have not been able to find the attributes using a FileInfo-object. I have seen someone doing this on the net using a COM-object with prog-id "DSOLEFILE.PropertyReader". Do I have to use this in stead? And in that case where can I find it? :wtf: X| :sigh::doh: Thanks in advance, Mattias
What you're talking about is metadata, such as Exif image file attributes, which have nothing to do with normal attributes. Use the PropertyItems[] property of the Image class for this.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi -
What you're talking about is metadata, such as Exif image file attributes, which have nothing to do with normal attributes. Use the PropertyItems[] property of the Image class for this.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma GandhiTanks a lot. :rolleyes: (Even though it was not a trivail thing to get the metadata from the EXIF-file) But what is not wasy, is fun! :cool: /Mattias