All Classes Namespaces Functions Variables Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BlinkStickDotNet.RgbColor Class Reference

Public Member Functions

override string ToString ()
 Returns a string that represents the current object. More...
 

Static Public Member Functions

static RgbColor FromRgb (int r, int g, int b)
 Froms the rgb value from int components. More...
 
static RgbColor FromGdkColor (ushort r, ushort g, ushort b)
 Froms the color of the GDK color. More...
 
static RgbColor FromString (String color)
 Converts HEX string or name of the RGB color. For example #123456, blue, red, orange More...
 
static RgbColor Black ()
 Get black color. More...
 
static Boolean IsValidColor (String color)
 Determines if is valid color format of the specified string (#rrggbb). More...
 

Public Attributes

Byte R
 The Red byte component. More...
 
Byte G
 The Green byte component. More...
 
Byte B
 The Blue byte component. More...
 

Member Function Documentation

static RgbColor BlinkStickDotNet.RgbColor.Black ( )
static

Get black color.

static RgbColor BlinkStickDotNet.RgbColor.FromGdkColor ( ushort  r,
ushort  g,
ushort  b 
)
static

Froms the color of the GDK color.

Returns
The gdk color.
Parameters
rThe red component.
gThe green component.
bThe blue component.
static RgbColor BlinkStickDotNet.RgbColor.FromRgb ( int  r,
int  g,
int  b 
)
static

Froms the rgb value from int components.

Returns
The rgb.
Parameters
rThe red component.
gThe green component.
bThe blue component.
static RgbColor BlinkStickDotNet.RgbColor.FromString ( String  color)
static

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

Returns
The string.
Parameters
colorColor string.
static Boolean BlinkStickDotNet.RgbColor.IsValidColor ( String  color)
static

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

Returns
true if is valid color the specified color; otherwise, false.
Parameters
colorColor.
override string BlinkStickDotNet.RgbColor.ToString ( )

Returns a string that represents the current object.

Returns
A string that represents the current object.

<filterpriority>2</filterpriority>

Member Data Documentation

Byte BlinkStickDotNet.RgbColor.B

The Blue byte component.

Byte BlinkStickDotNet.RgbColor.G

The Green byte component.

Byte BlinkStickDotNet.RgbColor.R

The Red byte component.


The documentation for this class was generated from the following file: