Share via


ColorValue.ColorValue(Int32,Int32,Int32) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the ColorValue structure.

Definition

Visual Basic Public Sub New( _
    ByVal r As Integer, _
    ByVal g As Integer, _
    ByVal b As Integer _
)
C# public ColorValue(
    int r,
    int g,
    int b
);
C++ public:
 ColorValue(
    int r,
    int g,
    int b
);
JScript public function ColorValue(
    r : int,
    g : int,
    b : int
);

Parameters

r System.Int32
An integer value that represents the level of red in the color.
g System.Int32
An integer value that represents the level of green in the color.
b System.Int32
An integer value that represents the level of blue in the color.