Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image control doesn't return the proper dimensions
Message
From
07/11/2002 23:56:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Image control doesn't return the proper dimensions
Miscellaneous
Thread ID:
00720146
Message ID:
00720146
Views:
47
For some isolated cases, the image control doesn't return the proper dimensions. This is the function that I am using:
loImage=GetDimension(lcFile+'.jpg')
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
Usually, this is working fine. But, I have found that sometimes, it returns some coordinates which are way bigger than the actual image size. Anyone found a way to make that bullet proof?
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
Next
Reply
Map
View

Click here to load this message in the networking platform