Jump to content

BITMAPINFO

From EDM2
Revision as of 15:44, 27 December 2019 by Martini (talk | contribs) (Created page with "Bit-map information structure. Each bit plane logically contains (cx * cy * cBitCount) bits, although the actual length can be greater because of padding. See also BITMA...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Bit-map information structure.

Each bit plane logically contains (cx * cy * cBitCount) bits, although the actual length can be greater because of padding.

See also BITMAPINFO2, which is preferred.

Type

typedef struct _BITMAPINFO {

 ULONG      cbFix;         /*  Length of fixed portion of structure. */
 USHORT     cx;            /*  Bit-map width in pels. */
 USHORT     cy;            /*  Bit-map height in pels. */
 USHORT     cPlanes;       /*  Number of bit planes. */
 USHORT     cBitCount;     /*  Number of bits per pel within a plane. */
 RGB        argbColor[1];  /*  Array of RGB values. */

} BITMAPINFO;


C Declaration Method

typedef BITMAPINFO *PBITMAPINFO;