Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine the size of a bmp-file
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00386335
Message ID:
00387016
Views:
20
>George,
>
>besides the fact that your function returns the value in Pels which I now convert into mm's I want to thank you for this solution. It works like a charm.
>
>Thanks!
>
>Regards,
>
Ron,

You're welcome. Actually, I think Mike's solution (with the image control) is more efficient. However, it appeared from an earlier post to Nigel that you didn't want to use that for some reason. At any rate...

Bitmap sizes are stored by Windows in pixels. However, part of the requirements for a bitmap is that the X and Y pels per meter are stored in the BITMAPINFOHEADER structure. If that information is helpful it can be retrieved using a similar technique to the one I mentioned in my post. The difference would be that you would convert the X co-ordinate pels per meter (horizontal) beginning at offset 39 (StringToInteger(SUBSTR(lcbitmap, 39, 4))) and the Y pels (vertical) beginning at 43.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform