|
-
Jul 14th, 2005, 06:14 AM
#1
Thread Starter
Lively Member
[RESOLVED] Accessing Private Stuff
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
You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.
And as always.... What goes around .. Comes Around.
-
Jul 14th, 2005, 10:31 AM
#2
Re: Accessing Private Stuff
Use the System.Io.FileInfo class, get the CreationTime property
-
Jul 14th, 2005, 10:51 AM
#3
Re: Accessing Private Stuff
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
"The dark side clouds everything. Impossible to see the future is."
-
Jul 15th, 2005, 01:06 AM
#4
Re: Accessing Private Stuff
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...
-
Jul 15th, 2005, 03:13 AM
#5
Thread Starter
Lively Member
Re: Accessing Private Stuff
 Originally Posted by Asgorath
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
thnaks dude! but what about date?
You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.
And as always.... What goes around .. Comes Around.
-
Jul 15th, 2005, 03:55 AM
#6
Re: Accessing Private Stuff
Erm... did you read my post?
VB Code:
Dim fi As New System.IO.FileInfo("c:\abc.jpg")
MessageBox.show(fi.CreationTime.ToShortDateString())
-
Jul 15th, 2005, 04:45 AM
#7
Thread Starter
Lively Member
Re: Accessing Private Stuff
ermm.. well I did read it .. but the last post was more user friendly 
thanks mate
You should LEARN not COPY... by learning you could be original in future work ... by copying you will risk getting in trouble.
And as always.... What goes around .. Comes Around.
-
Jul 15th, 2005, 09:13 AM
#8
Re: Accessing Private Stuff
 Originally Posted by mendhak
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...
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.
Did you ever find out who nicked your camera?
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|