Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resize images in the .picture property in a form 1

Status
Not open for further replies.

white605

Technical User
Jan 20, 2003
394
US
I have gleaned much info on storing pictures in the .picture property of an image control on forms from a keyword search, and also faq184-3102, a quick way to read in filenames of them.

I cannot seem to find anything about making the image file thats out there fit into the control on the forms. Some of the files are jpgs and some are tiffs with greatly differing file sizes depending on the resolution of the camra.

thanks in adavance...wjwjr
 
white605

An image control will display an image in three different forms, determined by the .Stretch property.

0 - Clip (Exact size)
1 - Isometric (Image will be scaled to fit image control size)
2 - Stretch ( Image will be 'stretched' and thus distorted to fit exact size of the control)

There is a 'gotcha' with the image control. If you initially set the .Stretch property to 0, the default, set the .Picture property to an image file and subsequently attempt to change it to 1 or 2, nothing happens.

Simple answer - remove the control and start again.

Unless there has been a change in VFP 8.00, you will not be able to display a .tif in a VFP image control, but you could batch convert the image to .bmp or .jpg for display purposes through a freeware external graphics editor such as IrfanView, available from
FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
Chris,

Thanks a lot, knowing the answer is the answer to answering the questions. Although I had been looking at all the posts on kodak controls etc, I would have never thought to delete the control and start again. Works like a charm!
wjwjr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top