How to know the image size

C

Chlaris

Dear all,

I have a form where the user can input the location of image file. To
display the image proportionally, I need to know the image size.
Is there any function to get the image size ?
Thanks.

Amin Ch.
 
J

John B. Smotherman

You may not need the image size in order to display it proportionally. If the
image (or unbound) control on the form does not change size, simply set its
size mode property to "zoom" and the picture will proportionally fill the
image control. If you wish to change the size of the image control, based on
the size of the image, simply use the image.sizetofit method to fit the
control to the image.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top