BITMAPFILEHEADER

typedef struct tagBITMAPFILEHEADER { /* bmfh */

WORD bfType;

DWORD bfSize;

WORD bfReserved1;

WORD bfReserved2;

DWORD bfOffBits;

} BITMAPFILEHEADER;

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

Members

bfType

Specifies the file type. It must be BM.

bfSize

Specifies the size of the file in DWORDs (this value can be obtained by dividing the length of the file in bytes by four).

bfReserved1

Is reserved and must be set to zero.

bfReserved2

Is reserved and must be set to zero.

bfOffBits

Specifies the offset in bytes from the BITMAPFILEHEADER to the bitmap bits.

Comments

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

See Also

BITMAPCOREINFO, BITMAPINFO