Jump to content

BITMAPINFO: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
Bit-map information structure.  
Bit-map information structure.


Each bit plane logically contains (cx * cy * cBitCount) bits, although the actual length can be greater because of padding.  
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.  
See also [[BITMAPINFO2]], which is preferred.


==Type==
  typedef struct _BITMAPINFO {
  typedef struct _BITMAPINFO {
   ULONG      cbFix;        /*  Length of fixed portion of structure. */
   ULONG      cbFix;        /*  Length of fixed portion of structure. */
Line 14: Line 13:
   RGB        argbColor[1];  /*  Array of RGB values. */
   RGB        argbColor[1];  /*  Array of RGB values. */
  } BITMAPINFO;
  } BITMAPINFO;
typedef BITMAPINFO *PBITMAPINFO;


==C Declaration Method==
[[Category:GPI Data type]]
typedef BITMAPINFO *PBITMAPINFO;
 
[[Category:Data type]]

Revision as of 05:34, 21 February 2020

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.

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;

typedef BITMAPINFO *PBITMAPINFO;