D3DCOLOR_XRGB

This macro initializes a color with the supplied red, green, and blue values.

D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b)

Parameters

  • r, g, and b
    Red, green, and blue components of the color. These values must be in the range 0 through 255.

Return Values

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8types.h.

See Also

Direct3D Macros | D3DCOLOR_ARGB | D3DCOLOR_RGBA

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.