Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image dimensions
Message
From
13/12/2018 10:21:49
 
 
To
13/12/2018 10:13:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01664455
Message ID:
01664463
Views:
63
>>Hi
>>
>>Have done this before but have forgotten how ... I have an image file in a binary memo field. How can I determine the width and height of the image? It can be png, bmp, or jpg.
>>
>>TIA
>
>LOCAL loImage AS Image
>loImage = NEWOBJECT("Image")
>loImage.PictureVal = Mytable.Imagefield
>?loImage.Width
>?loImage.Height

Thanks Christian, that was it! Couldn't remember the NEWOBJECT() part :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform