Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image Attributes
Message
From
16/10/2002 15:59:59
 
 
To
16/10/2002 15:56:00
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00711944
Message ID:
00711949
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform