C# Класс BlinkStickDotNet.RgbColor

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
B Byte
G Byte
R Byte

Открытые методы

Метод Описание
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.

Описание методов

Black() публичный статический Метод

Get black color.
public static Black ( ) : RgbColor
Результат RgbColor

FromGdkColor() публичный статический Метод

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.
Результат RgbColor

FromRgb() публичный статический Метод

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.
Результат RgbColor

FromString() публичный статический Метод

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.
Результат RgbColor

IsValidColor() публичный статический Метод

Determines if is valid color format of the specified string (#rrggbb).
public static IsValidColor ( String color ) : System.Boolean
color String Color.
Результат System.Boolean

RgbColor() публичный Метод

public RgbColor ( ) : System
Результат System

ToString() публичный Метод

Returns a string that represents the current object.
public ToString ( ) : string
Результат string

Описание свойств

B публичное свойство

The Blue byte component.
public Byte B
Результат Byte

G публичное свойство

The Green byte component.
public Byte G
Результат Byte

R публичное свойство

The Red byte component.
public Byte R
Результат Byte