ColorFromRGB Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Builds a Color object from red, green, and blue values.
Namespace: Microsoft.SPOT.Presentation.Media
Assembly: Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)
Syntax
'Declaration
Public Shared Function ColorFromRGB ( _
r As Byte, _
g As Byte, _
b As Byte _
) As Color
public static Color ColorFromRGB(
byte r,
byte g,
byte b
)
public:
static Color ColorFromRGB(
unsigned char r,
unsigned char g,
unsigned char b
)
static member ColorFromRGB :
r:byte *
g:byte *
b:byte -> Color
public static function ColorFromRGB(
r : byte,
g : byte,
b : byte
) : Color
Parameters
- r
Type: System. . :: . .Byte
The red value.
- g
Type: System. . :: . .Byte
The green value.
- b
Type: System. . :: . .Byte
The blue value.
Return Value
Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
A color with the specified red, green, and blue values.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.