A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to know the image size



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2010, 08:50 AM posted to microsoft.public.access
Chlaris
external usenet poster
 
Posts: 112
Default 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  
Old May 19th, 2010, 06:29 PM posted to microsoft.public.access
John B. Smotherman
external usenet poster
 
Posts: 55
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.