Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading height and width of jpeg files
Message
 
To
16/07/2002 11:24:44
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00679153
Message ID:
00679223
Views:
21
>Hello,
>
>I need to be able to perform calculations in Foxpro based upon the pixel height and width of jpeg images.
>
>It looks as though Windows is perfectly capable of reading this info (eg right-clicking a jepg), so what's the easiest way of returning these values to a Foxpro program?
>
>How should I write a function to return an unambiguous height, or width in pixels?
>
>Would it be best to use Fopen() and parse the file header (how, exactly?), or is there a handy Windows API function which will return the numbers I need?
>
>Thanks
>
>John

These might help:

http://wc.wikis.com/wc.dll?WC~JpgSizeFunction
http://wc.wikis.com/wc.dll?WC~GifSizeFunction
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform