C# 클래스 BlinkStickDotNet.RgbColor

파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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