Hi all, How do you know the properties of a picture:
it's creation date
it's size in pixels
thanks guys
any help is welcome :wave:
Printable View
Hi all, How do you know the properties of a picture:
it's creation date
it's size in pixels
thanks guys
any help is welcome :wave:
Use the System.Io.FileInfo class, get the CreationTime property
There probably a more effcient way but here goes
VB Code:
dim aImage as image aImage = aImage.FromFile(PicPath) Dim res_V As Single = aImage.Width Dim res_H As Single = aImage.Height
I've always wondered how windows is able to determine the image's dimensions when you mouseover it (in WinXP at least). It must be an API of some sort...
Quote:
Originally Posted by Asgorath
thnaks dude! but what about date?
Erm... did you read my post?
VB Code:
Dim fi As New System.IO.FileInfo("c:\abc.jpg") MessageBox.show(fi.CreationTime.ToShortDateString())
ermm.. well I did read it .. but the last post was more user friendly :p
thanks mate
I think it probably is something like that, or it may be a background service of some kind. The way it seems to me is that windows needs to know how to open and read all the different kinds of header blocks found in different image file formats. Jpegs store all kinds of info, bmps store hardly anything.Quote:
Originally Posted by mendhak
Did you ever find out who nicked your camera?