COLORINFO
The COLORINFO structure defines a device's colors in CIE coordinate space.
typedef struct _COLORINFO {
CIECHROMA Red;
CIECHROMA Green;
CIECHROMA Blue;
CIECHROMA Cyan;
CIECHROMA Magenta;
CIECHROMA Yellow;
CIECHROMA AlignmentWhite;
LDECI4 RedGamma;
LDECI4 GreenGamma;
LDECI4 BlueGamma;
LDECI4 MagentaInCyanDye;
LDECI4 YellowInCyanDye;
LDECI4 CyanInMagentaDye;
LDECI4 YellowInMagentaDye;
LDECI4 CyanInYellowDye;
LDECI4 MagentaInYellowDye;
} COLORINFO, *PCOLORINFO;
Members
- Red, Green, Blue, Cyan, Magenta, Yellow, AlignmentWhite
- Specify CIECHROMA structures that each define the x, y, and Y (luminance) coordinates of the named color.
- RedGamma, GreenGamma, BlueGamma
- Are the gamma corrections of display devices that permit the display device to display colors between the primary colors with accuracy. Their values should be between 0 and 6.5535, which means that the numbers actually stored in these members must be in the range 0 through 65535. See the Comments section for more information about this data type.
- MagentaInCyanDye, YellowInCyanDye, CyanInMagentaDye, YellowInMagentaDye, CyanInYellowDye, MagentaInYellowDye
- Used for printing devices to describe color purity and concentration. Values should be between zero and one, which means that the numbers actually stored in these members must be in the range 0 through 10000. See the Comments section for more information about this data type.
Headers
Declared in winddi.h. Include winddi.h.
Comments
The LDECI4 type is used to represent real numbers to four decimal places. For example, (LDECI4) 10000 represents the real number 1.0000, and (LDECI4) -12345 represents -1.2345.
Any values in the COLORINFO structure that are out of the specified range default to the NTSC values.
See Also
CIECHROMA, DrvEnablePDEV, GDIINFO