msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BITMAPINFO (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_GPIBITMAPS
 
typedef struct _BITMAPINFO {    /* bmi */
    ULONG  cbFix;
    USHORT cx;
    USHORT cy;
    USHORT cPlanes;
    USHORT cBitCount;
    RGB    argbColor[1];
} BITMAPINFO;
 
The BITMAPINFO structure contains a bitmap information table.
 
Field         Description
────────────────────────────────────────────────────────────────────────────
 
cbFix         Specifies the length of the fixed portion of the structure.
              This value must be 12.
 
cx            Specifies the width of the bitmap (in pels).
 
cy            Specifies the height of the bitmap (in pels).
 
cPlanes       Specifies the number of bit planes.
 
cBitCount     Specifies the number of bits per pel within a plane.
 
argbColor[1]  Specifies a packed array of 24-bit RGB colors. If there are n
              bits per pixel, the array contains 2xn RGB colors, unless n
              equals 24. The standard-format bitmap, with 24 bits per pixel,
              is assumed to contain RGB colors and does not use the colors
              array.
 
Comments
 
Depending on the format of the given bitmap, an application may need to
allocate extra bytes for the structure to hold the additional elements for
the argbColor field.
 
See Also
 
GpiCreateBitmap, GpiQueryBitmapBits, GpiSetBitmapBits