Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you get height and width of an image
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01443957
Message ID:
01443999
Views:
64
>Hmm, looks like the GDI Plus Foundation Class might be a possibility.

Why don't you try VFPx/GdiPlusX project ? There is lot of samples provided in it's demo project.
Also check Cesar Chalom blog at Foxite. This should be fairly simple.

Non gdi+, (dirty fox {g} ) way wld be to load image file to an empty image control with stretch property set to 0 (clip)
You add image control to a form, set width/height for instance 5X5 pix and then progarmatically change
image.picture property. After foxpro resizes image object itself to show entire picture, you simply read height and width.

Form can be invisible, or parked safely at say -10 000 pixels to the left ;)

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform