WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
DirectOutput.General.Color.RGBColor Class Reference

This class stores information on RGB colors used for toys and effects (e.g. RGBLed). More...

Inheritance diagram for DirectOutput.General.Color.RGBColor:
DirectOutput.General.Color.RGBColorNamed

Public Member Functions

bool SetColor (int Red, int Green, int Blue)
 Sets the RGB components of the Color. More...
 
bool SetColor (string Color)
 Sets the RGB components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
 
 RGBColor ()
 Initializes a new instance of the RGBColor class. More...
 
 RGBColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue)
 Initializes a new instance of the RGBColor class. More...
 
 RGBColor (string Color)
 Initializes a new instance of the RGBColor class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. More...
 

Properties

int Red [get, set]
 Brightness for Red. More...
 
int Green [get, set]
 Brightness for Green. More...
 
int Blue [get, set]
 Brightness for Blue. More...
 
string HexColor [get, set]
 Returns the hexadecimal code for the color. More...
 

Detailed Description

This class stores information on RGB colors used for toys and effects (e.g. RGBLed).

Definition at line 14 of file RGBColor.cs.

Constructor & Destructor Documentation

DirectOutput.General.Color.RGBColor.RGBColor ( )

Initializes a new instance of the RGBColor class.

Definition at line 137 of file RGBColor.cs.

DirectOutput.General.Color.RGBColor.RGBColor ( int  BrightnessRed,
int  BrightnessGreen,
int  BrightnessBlue 
)

Initializes a new instance of the RGBColor class.

Parameters
BrightnessRedThe brightness for red.
BrightnessGreenThe brightness for green.
BrightnessBlueThe brightness for blue.

Definition at line 145 of file RGBColor.cs.

DirectOutput.General.Color.RGBColor.RGBColor ( string  Color)

Initializes a new instance of the RGBColor class. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.

Parameters
ColorThe color string.

Definition at line 153 of file RGBColor.cs.

Member Function Documentation

bool DirectOutput.General.Color.RGBColor.SetColor ( int  Red,
int  Green,
int  Blue 
)

Sets the RGB components of the Color.

Parameters
RedRed brightness
GreenGreen brightness
BlueBlue brightness
Returns
true

Definition at line 82 of file RGBColor.cs.

bool DirectOutput.General.Color.RGBColor.SetColor ( string  Color)

Sets the RGB components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.

Parameters
ColorHexadecimal color code (e.g. #ff0000 for red) or comma separated color (e.g. 0,255,0 for green).
Returns
true if the parameter string contained a valid color codes, otherwise false.

Definition at line 96 of file RGBColor.cs.

Property Documentation

int DirectOutput.General.Color.RGBColor.Blue
getset

Brightness for Blue.

Brightness between 0 and 255.

Definition at line 54 of file RGBColor.cs.

int DirectOutput.General.Color.RGBColor.Green
getset

Brightness for Green.

Brightness between 0 and 255.

Definition at line 42 of file RGBColor.cs.

string DirectOutput.General.Color.RGBColor.HexColor
getset

Returns the hexadecimal code for the color.

6 digit hexadecimal color code with leading #(e.g. #ff0000 for red).

Definition at line 65 of file RGBColor.cs.

int DirectOutput.General.Color.RGBColor.Red
getset

Brightness for Red.

Brightness between 0 and 255.

Definition at line 29 of file RGBColor.cs.


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