The BITMAPINFO and BITMAPCOREINFO data structures define the dimensions and color information for Windows 3.0 and Presentation Manager 1.2 DIBs, respectively. These structures are defined as follows:
Windows 3.0 DIB
typedef struct tagBITMAPINFO { BITMAPINFOHEADER bmiHeader; RGBQUAD bmiColors[1]; } BITMAPINFO;
Presentation Manager 1.2 DIB
typedef struct BITMAPCOREINFO { BITMAPCOREHEADER bmciHeader; RGBTRIPLE bmciColors[1]; } BITMAPCOREINFO;
These structures are alike essentially; this section describes both structures simultaneously. Each field name for the Windows BITMAPINFO structure is followed by the corresponding field name for the Presentation Manager BITMAPCOREINFO 1.2 structure, in parentheses. The following table describes these fields.
┌──────────────────────────────┬──────────────────────────────┐ │Windows (PM) Fields │Description │ ├──────────────────────────────┼──────────────────────────────┤ │bmiHeader (bmciHeader) │Specifies information about │ │ │the dimensions and color │ │ │format of the DIB. The │ │ │BITMAPINFOHEADER and │ │ │BITMAPCOREHEADER data │ │ │structures are described in │ │ │the next section. │ ├──────────────────────────────┼──────────────────────────────┤ │bmiColors (bmciColors) │Specifies the DIB color table.│ │ │The RGBQUAD and RGBTRIPLE data│ │ │structures are described in │ │ │Bitmap Color Table. │ └──────────────────────────────┴──────────────────────────────┘