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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Properties in Report - Crop to Fit?

Status
Not open for further replies.

trevr1

Programmer
Feb 4, 2003
23
US
Hello,

We have created a report that prints a detailed customer record. The report consists of customer info along with an image of the customer.

My question is that for the image properties, we are using "scale contents, retain the shape". But when we do this, we leave to much white space and makes the report look goofy. If we choose "scale contents, fill the frame" the customer image looks very distorted. I see in other apps, they have a crop to fit. This won't distort the image, just crops of the left and right hand side. Is Foxpro 9 capable of doing this? Is there an active x control that might allow this? Thanks.
 

Didn't you see the third option, "Clip picture"? That's same as "Crop to fit". VFP6 has it, I would assume that it didn't go away in VFP9. Only it crops the picture on the right and bottom, and retaines the upper left corner.

Are all images are of the same size? If so, wouldn't it be easier to design the right shape/proportion in the report, to avoid the distortion?
 
Thanks for your help.

Unfortunately "Clip Picture" doesn't work because it doesn't resize the photo, it just clips it so all you would see in a full size image of someone is the left side of their head and shoulder and not the full body shot.

Images are all different sizes (some landscape, others portrait) so we can't set the image to one size.
 

Unfortunately "Clip Picture" doesn't work because it doesn't resize the photo, it just clips it...

It's exactly what it does, but it is no different from "crop to fit" option you were asking for, except for the sides on which the image is being cut.

I would go with "scale contents, retain the shape" option, but would think of ways to redesign the report so it would look better.

 
I was looking for "crop to fit" feature like my Corel Photo program has. When I insert a portrait image in the 4x6 print template, it crops off both sides of the pic and centers the image perfectly. In our Foxpro case, you would only see the left hand side of the image and not the center part.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top