ColorValue Constructor (Single, Single, Single, Single)
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
)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
ColorValue Structure
ColorValue Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace