D3DCOLOR_AYUV

Initializes a color using the (a,y,u,v) values.

#define D3DCOLOR_AYUV(a,y,u,v) D3DCOLOR_ARGB(a,y,u,v)

Parameters

a
Alpha component of the color. This value must be in the range 0 through 255.
y
Luminance component of the color. This value must be in the range 0 through 255.
u
Blue brightness of the color. This value must be in the range 0 through 255.
v
Red brightness of the color. This value must be in the range 0 through 255.

Return Values

Returns the D3DCOLOR value that corresponds to the supplied (y,u,v) values.

Remarks

An RGB color can be reduced to 16 bits per pixel by conversion to luminance and color differences with the following equations:

y (luminance) = 0.299*red + 0.587*green + 0.114*blue
u = blue - luminance
v = red - luminance 

See Also

D3DCOLOR_ARGBD3DCOLOR_XYUV