If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to know the image size
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. |
#2
|
|||
|
|||
How to know the image size
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 "Chlaris" wrote: 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. . |
Thread Tools | |
Display Modes | |
|
|