C# Class BlinkStickDotNet.RgbColor

Show file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Properties

Property Type Description
B Byte
G Byte
R Byte

Public Methods

Method Description
Black ( ) : RgbColor

Get black color.

FromGdkColor ( ushort r, ushort g, ushort b ) : RgbColor

Froms the color of the GDK color.

FromRgb ( int r, int g, int b ) : RgbColor

Froms the rgb value from int components.

FromString ( String color ) : RgbColor

Converts HEX string or name of the RGB color. For example #123456, blue, red, orange

IsValidColor ( String color ) : System.Boolean

Determines if is valid color format of the specified string (#rrggbb).

RgbColor ( ) : System
ToString ( ) : string

Returns a string that represents the current object.

Method Details

Black() public static method

Get black color.
public static Black ( ) : RgbColor
return RgbColor

FromGdkColor() public static method

Froms the color of the GDK color.
public static FromGdkColor ( ushort r, ushort g, ushort b ) : RgbColor
r ushort The red component.
g ushort The green component.
b ushort The blue component.
return RgbColor

FromRgb() public static method

Froms the rgb value from int components.
public static FromRgb ( int r, int g, int b ) : RgbColor
r int The red component.
g int The green component.
b int The blue component.
return RgbColor

FromString() public static method

Converts HEX string or name of the RGB color. For example #123456, blue, red, orange
public static FromString ( String color ) : RgbColor
color String Color string.
return RgbColor

IsValidColor() public static method

Determines if is valid color format of the specified string (#rrggbb).
public static IsValidColor ( String color ) : System.Boolean
color String Color.
return System.Boolean

RgbColor() public method

public RgbColor ( ) : System
return System

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string

Property Details

B public property

The Blue byte component.
public Byte B
return Byte

G public property

The Green byte component.
public Byte G
return Byte

R public property

The Red byte component.
public Byte R
return Byte