2.9.43 COLORREF

The COLORREF structure specifies a color in terms of its red, green, and blue components.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

red

green

blue

fAuto

red (1 byte): An unsigned integer that specifies the intensity of the color red. A value of zero specifies that there is no red. Larger numbers specify a more intense red than smaller numbers.

green (1 byte): An unsigned integer that specifies the intensity of the color green. A value of zero specifies that there is no green. Larger numbers specify a more intense green than smaller numbers.

blue (1 byte): An unsigned integer that specifies the intensity of the color blue. A value of zero specifies that there is no blue. Larger numbers specify a more intense blue than smaller numbers.

fAuto (1 byte): An unsigned integer whose value MUST be either 0xFF or 0x00. If the value is 0xFF, the values of red, green, and blue in this COLORREF SHOULD<208> all be 0x00. If fAuto is 0xFF, this COLORREF designates the default color for the application. An application MAY<209> use different default colors based on context. This documentation refers to the COLORREF with fAuto set to 0xFF as cvAuto.