Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you get height and width of an image
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Divers
Thread ID:
01443957
Message ID:
01443999
Vues:
63
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform