ColorValue.FromArgb(Int32) Method (Microsoft.DirectX.Direct3D)

Initializes and returns an instance of a ColorValue structure using an Int32Leave Site value.

Definition

Visual Basic Public Shared Function FromArgb( _
    ByVal color As Integer _
) As ColorValue
C# public static ColorValue FromArgb(
    int color
);
C++ public:
static ColorValue FromArgb(
    int color
);
JScript public static function FromArgb(
    color : int
) : ColorValue;

Parameters

color System.Int32
An Int32Leave Site value that is used to initialize a ColorValue structure.

Return Value

Microsoft.DirectX.Direct3D.ColorValue
A ColorValue structure whose properties are initialized to the color value.