ColorValue Structure (Microsoft.DirectX.Direct3D)

Stores the red, green, blue, and alpha channel values that together define a specific color.

Definition

Visual Basic Public Structure ColorValue
C# public struct ColorValue 
C++ public value class ColorValue sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
ColorValue Initializes a new instance of the ColorValue structure.
FillD3DColor Fills a _D3DCOLORVALUE structure with the color values of the current instance.
static (Shared in Visual Basic) FromArgb Initializes and returns an instance of a ColorValue structure using an Int32Leave Site value.
static (Shared in Visual Basic) FromColor Initializes and returns an instance of a ColorValue structure using a ColorLeave Site value.
static (Shared in Visual Basic) FromD3DColor Initializes and returns an instance of a ColorValue structure using an _D3DCOLORVALUE value.
ToArgb Returns an Int32Leave Site value that represents the color value of the current instance.

Properties

Property Description
Alpha Retrieves or sets the alpha channel value of the current color.
Blue Retrieves or sets the blue value of the current color.
Green Retrieves or sets the green value of the current color.
Red Retrieves or sets the red value of the current color.

Structure Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492