![]() |
![]() |
![]() |
Initializes a color using the (a,y,u,v) values.
Syntax
#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 Value
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
Macro Information
Header d3d9types.h Minimum operating systems Windows 98
See Also
D3DCOLOR_ARGB, D3DCOLOR_XYUV