Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Description of the COLOR union.
Syntax
typedef union tagCOLOR {
struct GRAYCOLOR gray;
struct RGBCOLOR rgb;
struct CMYKCOLOR cmyk;
struct XYZCOLOR XYZ;
struct YxyCOLOR Yxy;
struct LabCOLOR Lab;
struct GENERIC3CHANNEL gen3ch;
struct NAMEDCOLOR named;
struct HiFiCOLOR hifi;
struct {
DWORD reserved1;
VOID *reserved2;
};
} COLOR;
Members
gray
TBD
rgb
TBD
cmyk
TBD
XYZ
TBD
Yxy
TBD
Lab
TBD
gen3ch
TBD
named
TBD
hifi
TBD
reserved1
TBD
reserved2
TBD
Remarks
A variable of type COLOR may be accessed as any of the supported color space colors by accessing the appropriate member of the union. For instance, given the following variable declaration:
COLOR aColor;
the red, green and blue values could be set in the following manner:
aColor.rgb.red=100;
aColor.rgb.green=50;
aColor.rgb.blue=2;
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | icm.h |