BITMAPFILEHEADER

Version 3.0

Bitmap File Information

The BITMAPFILEHEADER data structure contains information about the type, size, and layout of a device-independent bitmap (DIB) file.

typedef struct tagBITMAPFILEHEADER {

WORDbfType;

DWORDbfSize;

WORDbfReserved1;

WORDbfReserved2;

DWORDbfOffBits;

} BITMAPFILEHEADER;

The BITMAPFILEHEADER data structure contains the following fields:

Field Description  

bfType Specifies the type of file. It must be BM.  
bfSize Specifies the size in DWORDs of the file.  
bfReserved1 Is reserved and must be set to zero.  
bfReserved2 Is reserved and must be set to zero.  
bfOffBits Specifies in bytes the offset from the BITMAPFILEHEADER of the actual bitmap in the file.  

Comments

A BITMAPINFO or BITMAPCOREINFO data structure immediately follows the
BITMAPFILEHEADER
structure in the DIB file.