D3DCOLOR_ARGB macro

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

Syntax

D3DCOLOR D3DCOLOR_ARGB(
   int a,
   int r,
   int g,
   int b
);

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.

Requirements

Requirement Value
Header
D3d9types.h

See also

Macros

D3DCOLOR_RGBA

D3DCOLOR_XRGB