WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
Color configuration from a LedControl file. More...
Public Member Functions | |
RGBAColorNamed | GetCabinetColor () |
Gets a cabinet RGBAColor object representing the values in the ColorConfig object-. More... | |
void | ParseLedcontrolData (string ColorConfigDataLine, bool ThrowExceptions=false) |
Parses the ledcontrol data for a color definition. More... | |
ColorConfig () | |
Initializes a new instance of the ColorConfig class. More... | |
ColorConfig (string ColorConfigDataLine, bool ThrowExceptions=false) | |
Initializes a new instance of the ColorConfig class. Parses the ledcontrol data for a color definition. More... | |
Properties | |
string | Name [get, set] |
Gets or sets the name of the color. More... | |
int | Red [get, set] |
Gets or sets the red part of the color. More... | |
int | Green [get, set] |
Gets or sets the green part of the color. More... | |
int | Blue [get, set] |
Gets or sets the blue part of the color. More... | |
int | Alpha [get, set] |
Gets or sets the alpha part of the color. More... | |
Color configuration from a LedControl file.
Definition at line 12 of file ColorConfig.cs.
DirectOutput.LedControl.Loader.ColorConfig.ColorConfig | ( | ) |
Initializes a new instance of the ColorConfig class.
Definition at line 130 of file ColorConfig.cs.
DirectOutput.LedControl.Loader.ColorConfig.ColorConfig | ( | string | ColorConfigDataLine, |
bool | ThrowExceptions = false |
||
) |
Initializes a new instance of the ColorConfig class. Parses the ledcontrol data for a color definition.
ColorConfigDataLine | The color config data line. |
ThrowExceptions | If set to true [throw exceptions]. |
System.Exception | Line {0} has a unknown structure or contains wrong data. |
Definition at line 139 of file ColorConfig.cs.
RGBAColorNamed DirectOutput.LedControl.Loader.ColorConfig.GetCabinetColor | ( | ) |
Gets a cabinet RGBAColor object representing the values in the ColorConfig object-.
Definition at line 18 of file ColorConfig.cs.
void DirectOutput.LedControl.Loader.ColorConfig.ParseLedcontrolData | ( | string | ColorConfigDataLine, |
bool | ThrowExceptions = false |
||
) |
Parses the ledcontrol data for a color definition.
ColorConfigDataLine | The color config data line. |
ThrowExceptions | If set to true [throw exceptions]. |
System.Exception | Line {0} has a unknown structure or contains wrong data. |
Definition at line 75 of file ColorConfig.cs.
|
getset |
Gets or sets the alpha part of the color.
The alpha part of the color.
Definition at line 64 of file ColorConfig.cs.
|
getset |
Gets or sets the blue part of the color.
The blue part of the color.
Definition at line 51 of file ColorConfig.cs.
|
getset |
Gets or sets the green part of the color.
The green part of the color.
Definition at line 44 of file ColorConfig.cs.
|
getset |
Gets or sets the name of the color.
The name of the color.
Definition at line 29 of file ColorConfig.cs.
|
getset |
Gets or sets the red part of the color.
The red value.
Definition at line 37 of file ColorConfig.cs.