?/TD>
Microsoft DirectX 9.0

D3DCOLOR_ARGB Macro


Initializes a color with the supplied alpha, red, green, and blue values.

Syntax

#define D3DCOLOR_ARGB(a,r,g,b) \
    ((D3DCOLOR)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))

Parameters

a
Alpha component of the color. This value must be in the range 0 through 255.
r
Red component of the color. This value must be in the range 0 through 255.
g
Green component of the color. This value must be in the range 0 through 255.
b
Blue component of the color. This value must be in the range 0 through 255.

Return Value

Returns the D3DCOLOR value that corresponds to the supplied ARGB values.



Macro Information

Headerd3d9types.h
Minimum operating systems Windows 98

See Also

D3DCOLOR_RGBA, D3DCOLOR_XRGB


© 2002 Microsoft Corporation. All rights reserved.