Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API functions to return jpeg dimensions?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00679166
Message ID:
00679823
Vues:
22
John,

As long as .Stretch is 0 (and it will be 0 when instantiating the VFP baseclass Image) setting the .Picture property of the object will cause it's .Height and .Width to be set based on the image file. You can of course change them after it's loaded, but the code Sergey posted works just fine for this problem.

>The oPic.Height / oPic.Width properties concern the display height and width. To find the pixel dimensions without going to a 3rd party utility, try using the PictureClip control PICCLP32.OCX. The documentation refers to 'bitmaps' but jpegs work as well.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform