tagBITMAPFILEHEADER structure

The BITMAPFILEHEADER structure contains information about the type, size, and layout of a file that contains a DIB.

Syntax

typedef struct tagBITMAPFILEHEADER {
  WORD  bfType;
  DWORD bfSize;
  WORD  bfReserved1;
  WORD  bfReserved2;
  DWORD bfOffBits;
} BITMAPFILEHEADER, *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER;

Members

bfType

The file type; must be BM.

bfSize

The size, in bytes, of the bitmap file.

bfReserved1

Reserved; must be zero.

bfReserved2

Reserved; must be zero.

bfOffBits

The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits.

Remarks

A BITMAPINFO or BITMAPCOREINFO structure immediately follows the BITMAPFILEHEADER structure in the DIB file. For more information, see Bitmap Storage.

Requirements

   
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Header wingdi.h (include Windows.h)

See Also

BITMAPCOREINFO

BITMAPINFO

Bitmap Structures

Bitmaps Overview