Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Attributes of a file type BMP
Message
 
To
14/08/1998 11:42:27
Carla Silva
Http - Produtos Informaticos, Lda.
Odivelas, Portugal
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00126937
Message ID:
00126977
Views:
19
>How can I know the size in bytes of a file type BMP, and the width an heigth in Pixels and Cm of the image.
>
>
>Thanks
>carla

Hi Carla,

Or you use the low level file functions to open and retrieve this information. Bytes 3-6 (lo to hi byte order, of course) are the file size; Bytes 19-22 are the width in pixels; Bytes 23-26 are the height in pixels; 39-42 are horizontal pixels per meter; and 43-46 are the vertical pixels per meter. If you look at the file using something like Hexedit.app, don't forget that the grid is zero based. The values shown above are one based.

hth,
George

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

Click here to load this message in the networking platform