Die union PIXELINDEXUNION repräsentiert die binäre Darstellung eines einzelnen Pixels in einer DIB ohne Auflösung in einen RGB-Farbwert.
typedef union |
||
{ |
||
BOOL |
pxMonochrome; // TRUE for first RGBQUAD in Palette, FALSE for last RGBQUAD in Palette |
|
BYTE |
pxPalette; // Palette-Index for biBitCount==4 or biBitCount == 8 |
|
RGBQUAD555 pxRgb555; |
// 16-Bít RGB pixel. |
|
WORD |
pxGray16; // Gray Value with extended 16 Bit per Value |
|
pxRgb; |
// 24/32-Bit RGB Pixel with normal 8 Bit per Value |
|
pxRgb16; |
// 24/32-Bit RGB Pixel with extended 16 Bit per Value |
|
pxCmyk; |
// 32-Bit CMYK Pixel with 8 Bit per Value |
|
} PIXELINDEXUNION, FAR *LPPIXELINDEXUNION; |
||
RGBQUAD555 |
||
typedef struct |
||
{ |
||
UINT |
rgb5Blue : 5; |
|
UINT |
rgb5Green : 5; |
|
UINT |
rgb5Red : 5; |
|
UINT |
rgb1Unused: 1; |
|
} RGBQUAD555, FAR *LPRGBQUAD555;// An RGB-Pixel for biBitCount==16 and biPlanes=1 |
||
CMYKQUAD |
||
typedef struct tagCYMKQUAD // Color-Components of a CMYK-Pixel |
||
{ |
||
BYTE cmykYellow; |
||
BYTE cmykMagenta; |
||
BYTE cmykCyan; |
||
BYTE cmykBlack; |
||
} CMYKQUAD, FAR *LPCMYKQUAD; |