Size and dimentions of image

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Can anyone help!!
I what to put X amount of images into a directory. On opening a form I want
access to read the directory and display the image size and dimention from
each graphic which will be stored in a tmp file.
Is there a way round this or can anyone point me in the right direction
thanks!
 
Hi Bill,

You'll need to find an Activex object, library or some code somewhere
that can extract the dimensions from whatever image files you intend to
use. Alternatively, there are probably some drawing and painting
programs that expose an OLE object model that can be controlled from VBA
or a scripting language (I believe that recent versions of Corel Draw
and Photopaint do so).

That done, it should be fairly simple to write code in VBA or just about
any other language to loop through all the images in the folder,
extracting the dimensions and writing them to disk in whatever format
you want for your .tmp file.

This is a rather vague answer, but it was a rather vague question<g>.

Can anyone help!!
I what to put X amount of images into a directory. On opening a form I want
access to read the directory and display the image size and dimention from
each graphic which will be stored in a tmp file.
Is there a way round this or can anyone point me in the right direction
thanks!

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Back
Top