Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API functions to return jpeg dimensions?
Message
 
 
À
16/07/2002 11:46:34
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00679166
Message ID:
00679185
Vues:
22
Try
oImg = CREATEOBJECT("Image")
oImg.Picture = GETPICT()
? oImg.Width
? oImg.Height
>Hello,
>
>I've already submitted this to the Images category, but this might be a better place, so I'm resubmitting it here...
>
>I need to be able to perform calculations in Foxpro based upon the pixel height and width of jpeg images.
>
>It looks as though Windows is perfectly capable of reading this info (eg right-clicking a jepg), so what's the easiest way of returning these values to a Foxpro program?
>
>Can this be done using a Windows API function (if so, how, exactly?), or do I need to use fopen() and find some way of parsing the jpeg header?
>
>Thanks
>
>John
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform