Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JPG & BMP Image Size
Message
 
To
12/06/2005 20:37:28
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022652
Message ID:
01024196
Views:
17
>Win XP picture file widows (Explorer, etc.) show .jpg, .bmp, and possibly other formats with file size AND pixel size and color bits in parentheses like this: "1.77KB (80x64x24)". Does anyone know if there is an API function (or any other method) that will return that pixel size information for a graphics file programmatically?

Ray

This is a major problem. I also need to know this to create Javascript with VFP to create correctly sized browser windows + images, and to put informative tooltips over images. (No use letting the browser decide - there are too many fiddly differences.)

My solution is a bad one. I have 30kb images for screen viewing and I use a VFP image control to get the dimensions so that I at least have the width x height ratio. I apply the ratio to my full sized (1-2Mb) image - I don't get its dimensions directly because this is very very slow with the VFP control.

I used to use picclp.ocx, but this is obsolete as it fails with PNG and TIFF images (as far as I can see).

John Burton
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform