The BITMAPINFOHEADER and BITMAPCOREHEADER structures contain information about the dimensions and color format of Windows 3.0 and Presentation Manager 1.2 DIBs, respectively. They are defined as follows:
Windows 3.0 DIB
typedef struct tagBITMAPINFOHEADER { ULONG biSize; ULONG biWidth; ULONG biHeight; USHORT biPlanes; USHORT biBitCount; ULONG biCompression; ULONG biSizeImage; ULONG biXPelsPerMeter; ULONG biYPelsPerMeter; ULONG biClrUsed; ULONG biClrImportant; } BITMAPINFOHEADER;
Presentation Manager 1.2 DIB
typedef struct tagBITMAPCOREHEADER { ULONG bcSize; USHORT bcWidth; USHORT bcHeight; USHORT bcPlanes; USHORT bcBitCount; } BITMAPCOREHEADER;
Again, because of the similarly of the Windows 3.0 and Presentation Manager structures, their common fields are described together. Each field name for the Windows structure is followed by the corresponding field name for the Presentation Manager structure, in parentheses.
Common Fields
The following fields are used in both the Windows 3.0 and Presentation Manager
1.2 formats:
Windows (PM) Field
Windows Fields The following fields are used only in the Windows 3.0 BITMAPINFOHEADER structure:
Field
BI_RGB
Nonzero
If the usBitCount value is 24, the biClrUsed value indicates the size of the reference color table used to optimize performance of Windows color palettes.