C# Class BlinkStickDotNet.RgbColor

Afficher le fichier Open project: arvydas/BlinkStickDotNet Class Usage Examples

Méthodes publiques

Свойство Type Description
B Byte
G Byte
R Byte

Méthodes publiques

Méthode 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 méthode

Get black color.
public static Black ( ) : RgbColor
Résultat RgbColor

FromGdkColor() public static méthode

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.
Résultat RgbColor

FromRgb() public static méthode

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.
Résultat RgbColor

FromString() public static méthode

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.
Résultat RgbColor

IsValidColor() public static méthode

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

RgbColor() public méthode

public RgbColor ( ) : System
Résultat System

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string

Property Details

B public_oe property

The Blue byte component.
public Byte B
Résultat Byte

G public_oe property

The Green byte component.
public Byte G
Résultat Byte

R public_oe property

The Red byte component.
public Byte R
Résultat Byte