Partager via


ColorValue.FromColor(Color) Method (Microsoft.DirectX.Direct3D)

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

Definition

Visual Basic Public Shared Function FromColor( _
    ByVal color As ColorLeave Site _
) As ColorValue
C# public static ColorValue FromColor(
    ColorLeave Site color
);
C++ public:
static ColorValue FromColor(
    ColorLeave Site color
);
JScript public static function FromColor(
    color : ColorLeave Site
) : ColorValue;

Parameters

color System.Drawing.Color
A ColorValue used to initialize a ColorValue structure.

Return Value

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