pixel-size of jpg-picture

J

JoAnn

How do I determine the size of a jpg-picture?

I want to import a picture in a form - but would like to
find out - through VBA - what the picture size is - e.g.
500 x 700 pixels or other.

How is that done?

And does it require my picture to be in any specific
format?
 
S

Stephen Lebans

The simplest method is to load the Jpeg into an Image control and then
examine the PictureWIdth and PictureHeight props.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Top