>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