Jump to content

BITMAPINFOHEADER: Difference between revisions

From EDM2
Created page with "Bit-map information header structure. Each bit plane logically contains (cx * cy * cBitCount) bits, although the actual length can be greater because of padding. See also ..."
 
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
Bit-map information header structure.  
Bit-map information header 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 [[BITMAPINFOHEADER2]], which is preferred.  
See also [[BITMAPINFOHEADER2]], which is preferred.


==Type==
  typedef struct _BITMAPINFOHEADER {
  typedef struct _BITMAPINFOHEADER {
   ULONG      cbFix;      /* Length of structure. */
   ULONG      cbFix;      /* Length of structure. */
   USHORT    cx;        /* Bit-map width in pels. */
   USHORT    cx;        /* Bit-map width in pels. */
   USHORT    cy;        /* Bit-map height in pels. */
   USHORT    cy;        /* Bit-map height in pels. */
   USHORT    cPlanes;    /* Number of bit planes. */
   USHORT    cPlanes;    /* Number of bit planes. */
   USHORT    cBitCount;  /* Number of bits per pel within a plane. */
   USHORT    cBitCount;  /* Number of bits per pel within a plane. */
  } BITMAPINFOHEADER;
  } BITMAPINFOHEADER;
typedef BITMAPINFOHEADER *PBITMAPINFOHEADER;


==C Declaration Method==
[[Category:GPI Data type]]
typedef BITMAPINFOHEADER *PBITMAPINFOHEADER;
 
[[Category:Data type]]

Revision as of 05:38, 21 February 2020

Bit-map information header structure.

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

See also BITMAPINFOHEADER2, which is preferred.

typedef struct _BITMAPINFOHEADER {
 ULONG      cbFix;      /* Length 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. */
} BITMAPINFOHEADER;

typedef BITMAPINFOHEADER *PBITMAPINFOHEADER;