BITMAPFILEHEADER

3.0

typedef struct tagBITMAPFILEHEADER {    /* bmfh */
    UINT    bfType;
    DWORD   bfSize;
    UINT    bfReserved1;
    UINT    bfReserved2;
    DWORD   bfOffBits;
} BITMAPFILEHEADER;

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

Members

bfType

Specifies the type of file. This member must be BM.

bfSize

Specifies the size of the file, in bytes.

bfReserved1

Reserved; must be set to zero.

bfReserved2

Reserved; must be set to zero.

bfOffBits

Specifies the byte offset from the BITMAPFILEHEADER structure to the actual bitmap data in the file.

Comments

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

See Also

BITMAPCOREINFO, BITMAPINFO