Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image size?
Message
 
À
10/06/2002 04:24:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00666260
Message ID:
00666444
Vues:
20
>>>>Is there a way to programmatically determine the size (like 99 H X 88 W) of a .JPG or .GIF image?
>>>
>>>See Thread #616843, Message #616952.
>>
>>This method returns a size in HIMETRIC units, not pixels. You can convert it into centimeters (Image.Width/1000) or inches (Image.Width/2540).
>
>Huh? I tried it extensively and it always returns pixels dimensions. VFP6 SPsomehting...

Yes, you're right! I overlooked "createobject( "Image" )" in that message. My comment is about another way of retrieving image size:
oImage = LoadPicture(GetPict())
? oImage.Height/1000, oImage.Width/1000
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform