General information
Category:
Coding, syntax & commands
Hi Ken,
>I am putting and image (jpg) on a form.
>I don't know the size of the image so I choose
>isometric. How can I read the image width and height
>so I can resize the form to make it look best?
If you do this:
wait window str(thisform.image1.width)+str(thisform.image1.height)
thisform.image1.visible=.f.
thisform.image1.stretch=0
wait window str(thisform.image1.width)+str(thisform.image1.height)
You'll see that youre previously isomtered imsage is now autosized and you can read the width and height values from the image object. You might want to save the old values so if the new ones are unacceptable (way to big) you could revert.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only