Microsoft DirectX 9.0 SDK Update (October 2004)

ColorValue Structure

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Structure ColorValue
C# public struct ColorValue
Managed C++ public __value struct ColorValue
JScript .NET In JScript .NET, 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 .NET) FromArgb Initializes and returns an instance of a ColorValue structure using an Int32 Leave Site value.
static (Shared in Visual Basic .NET) FromColor Initializes and returns an instance of a ColorValue structure using a Color Leave Site value.
static (Shared in Visual Basic .NET) 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.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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