470,874 Members | 1,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

Image Information

Hi,

Is there a way in VB.NET to get a JPEG Image Information ? like dimensions
(Width x Height)...etc..

Thanks in advance
Apr 8 '06 #1
3 1228
Once you open the image as an Image, you can get this information from the
class.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"martins" <xx*@hotmail.com> wrote in message
news:eE*************@TK2MSFTNGP05.phx.gbl...
Hi,

Is there a way in VB.NET to get a JPEG Image Information ? like
dimensions (Width x Height)...etc..

Thanks in advance

Apr 8 '06 #2
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OT**************@TK2MSFTNGP02.phx.gbl...
Once you open the image as an Image, you can get this information from the
class.


thanks for your reply

I have a PictureBox control but in order to fit on my program's frame I set
the property of SizeMode to StrechImage

The properties PictureBox1.Height and PictureBox1.Width, don't give me the
original size of the image...only the size of the streched image

Don't know how to get de original dimension of a JPEG image

can you give me some sample code ?

thank you very much
Apr 9 '06 #3
> The properties PictureBox1.Height and PictureBox1.Width, don't give me
the original size of the image...only the size of the streched image
Actually, they only give you the size of the PictureBox.
can you give me some sample code ?
Sure: PictureBox1.Image.Height
PictureBox1.Image.Width

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"martins" <xx*@hotmail.com> wrote in message
news:OE****************@TK2MSFTNGP02.phx.gbl... "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OT**************@TK2MSFTNGP02.phx.gbl...
Once you open the image as an Image, you can get this information from
the class.


thanks for your reply

I have a PictureBox control but in order to fit on my program's frame I
set the property of SizeMode to StrechImage

The properties PictureBox1.Height and PictureBox1.Width, don't give me
the original size of the image...only the size of the streched image

Don't know how to get de original dimension of a JPEG image

can you give me some sample code ?

thank you very much

Apr 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Erik Schulp | last post: by
3 posts views Thread by Sandi | last post: by
6 posts views Thread by Jensen bredal | last post: by
35 posts views Thread by Stan Sainte-Rose | last post: by
7 posts views Thread by bcutting | last post: by
2 posts views Thread by CK | last post: by
2 posts views Thread by Atul | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.