Image Information

  • Thread starter Thread starter martins
  • Start date Start date
M

martins

Hi,

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

Thanks in advance
 
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.
 
Kevin Spencer said:
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
 
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.
 
Back
Top