Jump to content

BITMAPINFO: Difference between revisions

From EDM2
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..."
 
Line 6: Line 6:


==Type==
==Type==
typedef struct _BITMAPINFO {
typedef struct _BITMAPINFO {
   ULONG      cbFix;        /*  Length of fixed portion of structure. */
   ULONG      cbFix;        /*  Length of fixed portion of structure. */
   USHORT    cx;            /*  Bit-map width in pels. */
   USHORT    cx;            /*  Bit-map width in pels. */
Line 13: Line 13:
   USHORT    cBitCount;    /*  Number of bits per pel within a plane. */
   USHORT    cBitCount;    /*  Number of bits per pel within a plane. */
   RGB        argbColor[1];  /*  Array of RGB values. */
   RGB        argbColor[1];  /*  Array of RGB values. */
} BITMAPINFO;
} BITMAPINFO;
 


==C Declaration Method==
==C Declaration Method==

Revision as of 15:45, 27 December 2019

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;