Microsoft DirectX 8.1 (C++)

D3DCOLOR_ARGB

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

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

Parameters

a, r, g, and b
Alpha, red, green, and blue components of the color. These values must be in the range 0 to 255.

Return Values

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

Requirements

  Header: Declared in D3d8types.h.

See Also

D3DCOLOR_RGBA, D3DCOLOR_XRGB