BITMAPINFOHEADER: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
Line 16: | Line 16: | ||
==Fields== | ==Fields== | ||
;cbFix (ULONG) | ;cbFix (ULONG):Length of structure. | ||
:Length of structure. | ;cx (USHORT):Bitmap width in pels. | ||
;cy (USHORT):Bitmap height in pels. | |||
;cx (USHORT) | ;cPlanes (USHORT):Number of bit planes. | ||
:Bitmap width in pels. | ;cBitCount (USHORT):Number of bits per pel within a plane. | ||
;cy (USHORT) | |||
:Bitmap height in pels. | |||
;cPlanes (USHORT) | |||
:Number of bit planes. | |||
;cBitCount (USHORT) | |||
:Number of bits per pel within a plane. | |||
[[Category:GPI Data type]] | [[Category:GPI Data type]] |
Latest revision as of 12:48, 2 April 2025
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;
Fields
- cbFix (ULONG)
- Length of structure.
- cx (USHORT)
- Bitmap width in pels.
- cy (USHORT)
- Bitmap height in pels.
- cPlanes (USHORT)
- Number of bit planes.
- cBitCount (USHORT)
- Number of bits per pel within a plane.