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)


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
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


Return Value

Type: Microsoft.SPOT.Presentation.Media. . :: . .Color
A color with the specified red, green, and blue values.

.NET Framework Security

See Also


ColorUtility Class

Microsoft.SPOT.Presentation.Media Namespace