ColorValue Structure

Language:

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

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 Int32 Leave Site value.
static (Shared in Visual Basic) FromColor Initializes and returns an instance of a ColorValue structure using a Color Leave Site value.
static (Shared in Visual Basic) FromD3DColor Initializes and returns an instance of a ColorValue structure using an _D3DCOLORVALUE value.
ToArgb Returns an Int32 Leave Site value that represents the color value of the current instance.
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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center