BITMAPINFOHEADER2: Difference between revisions
Appearance
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. Note: Man..." |
m hs |
||
| 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. | ||
;Note: Many functions can accept either this structure or the [[BITMAPINFOHEADER]] structure. Where possible, use BITMAPINFOHEADER2. | |||
==Type== | ==Type== | ||
typedef struct _BITMAPINFOHEADER2 { | typedef struct _BITMAPINFOHEADER2 { | ||
ULONG | ULONG cbFix; /* Length of structure. */ | ||
ULONG | ULONG cx; /* Bit-map width in pels. */ | ||
ULONG | ULONG cy; /* Bit-map height in pels. */ | ||
USHORT | USHORT cPlanes; /* Number of bit planes. */ | ||
USHORT | USHORT cBitCount; /* Number of bits per pel within a plane. */ | ||
ULONG | ULONG ulCompression; /* Compression scheme used to store the bit map. */ | ||
ULONG | ULONG cbImage; /* Length of bit-map storage data, in bytes. */ | ||
ULONG | ULONG cxResolution; /* Horizontal component of the resolution of target device. */ | ||
ULONG | ULONG cyResolution; /* Vertical component of the resolution of target device. */ | ||
ULONG | ULONG cclrUsed; /* Number of color indexes used. */ | ||
ULONG | ULONG cclrImportant; /* Minimum number of color indexes for satisfactory appearance of the bit map. */ | ||
USHORT | USHORT usUnits; /* Units of measure. */ | ||
USHORT | USHORT usReserved; /* Reserved. */ | ||
USHORT | USHORT usRecording; /* Recording algorithm. */ | ||
USHORT | USHORT usRendering; /* Halftoning algorithm. */ | ||
ULONG | ULONG cSize1; /* Size value 1. */ | ||
ULONG | ULONG cSize2; /* Size value 2. */ | ||
ULONG | ULONG ulColorEncoding;/* Color encoding. */ | ||
ULONG | ULONG ulIdentifier; /* Reserved for application use. */ | ||
} BITMAPINFOHEADER2; | } BITMAPINFOHEADER2; | ||
==C Declaration Method== | ==C Declaration Method== | ||
typedef BITMAPINFOHEADER2 *PBITMAPINFOHEADER2; | typedef BITMAPINFOHEADER2 *PBITMAPINFOHEADER2; | ||
[[Category:Data type]] | [[Category:Data type]] | ||
Revision as of 15:50, 8 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.
- Note
- Many functions can accept either this structure or the BITMAPINFOHEADER structure. Where possible, use BITMAPINFOHEADER2.
Type
typedef struct _BITMAPINFOHEADER2 {
ULONG cbFix; /* Length of structure. */
ULONG cx; /* Bit-map width in pels. */
ULONG cy; /* Bit-map height in pels. */
USHORT cPlanes; /* Number of bit planes. */
USHORT cBitCount; /* Number of bits per pel within a plane. */
ULONG ulCompression; /* Compression scheme used to store the bit map. */
ULONG cbImage; /* Length of bit-map storage data, in bytes. */
ULONG cxResolution; /* Horizontal component of the resolution of target device. */
ULONG cyResolution; /* Vertical component of the resolution of target device. */
ULONG cclrUsed; /* Number of color indexes used. */
ULONG cclrImportant; /* Minimum number of color indexes for satisfactory appearance of the bit map. */
USHORT usUnits; /* Units of measure. */
USHORT usReserved; /* Reserved. */
USHORT usRecording; /* Recording algorithm. */
USHORT usRendering; /* Halftoning algorithm. */
ULONG cSize1; /* Size value 1. */
ULONG cSize2; /* Size value 2. */
ULONG ulColorEncoding;/* Color encoding. */
ULONG ulIdentifier; /* Reserved for application use. */
} BITMAPINFOHEADER2;
C Declaration Method
typedef BITMAPINFOHEADER2 *PBITMAPINFOHEADER2;