Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return Attributes of a file type BMP
Message
 
À
14/08/1998 11:42:27
Carla Silva
Http - Produtos Informaticos, Lda.
Odivelas, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126937
Message ID:
00126977
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform