Share via


ColorValue.ColorValue(Single, Single, Single, Single) Constructor

Initializes a new instance of the ColorValue class.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Sub New ( _
    r As Single, _
    g As Single, _
    b As Single, _
    a As Single _
)
'Usage
Dim r As Single
Dim g As Single
Dim b As Single
Dim a As Single

Dim instance As New ColorValue(r, g, b, a)
public ColorValue (
    float r,
    float g,
    float b,
    float a
)
public:
ColorValue (
    float r, 
    float g, 
    float b, 
    float a
)
public ColorValue (
    float r, 
    float g, 
    float b, 
    float a
)
public function ColorValue (
    r : float, 
    g : float, 
    b : float, 
    a : float
)
Not applicable.

Parameters

  • r
    A floating value that represents the level of red in the color.
  • g
    A floating value that represents the level of green in the color.
  • b
    A floating value that represents the level of blue in the color.
  • a
    A floating value that represents the level of alpha channels in the color.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

ColorValue Structure
ColorValue Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace