Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image Attributes
Message
De
16/10/2002 15:59:59
 
 
À
16/10/2002 15:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00711944
Message ID:
00711949
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Does anyone know how do get image attributes from VFP6? I need to be able to select an image and return the heighth and width of the image. I am working with JPEGs and TIFFs. Thank you.
LOCAL loImage,lnWidth,lnHeight
loImage=GetDimension('d:\iis\images\MyImage.gif')
lnWidth=loImage.Width
lnHeight=loImage.Height

* Return an object to get the image dimensions
* expC1 Full path of the file
FUNCTION GetDimension
PARAMETER tcFile
loImage=CREATEOBJECT('Image')
loImage.Picture=tcFile
RETURN loImage
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform