DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.LedControl.Loader.ColorConfig Class Reference

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...
 

Detailed Description

Color configuration from a LedControl file.

Constructor & Destructor Documentation

DirectOutput.LedControl.Loader.ColorConfig.ColorConfig ( )

Initializes a new instance of the ColorConfig class.

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.

Parameters
ColorConfigDataLineThe color config data line.
ThrowExceptionsIf set to true [throw exceptions].
Exceptions
System.ExceptionLine {0} has a unknown structure or contains wrong data.

Member Function Documentation

RGBAColorNamed DirectOutput.LedControl.Loader.ColorConfig.GetCabinetColor ( )

Gets a cabinet RGBAColor object representing the values in the ColorConfig object-.

Returns
RGBAColorNamed object for the content of the ColorConfig.
void DirectOutput.LedControl.Loader.ColorConfig.ParseLedcontrolData ( string  ColorConfigDataLine,
bool  ThrowExceptions = false 
)

Parses the ledcontrol data for a color definition.

Parameters
ColorConfigDataLineThe color config data line.
ThrowExceptionsIf set to true [throw exceptions].
Exceptions
System.ExceptionLine {0} has a unknown structure or contains wrong data.

Property Documentation

int DirectOutput.LedControl.Loader.ColorConfig.Alpha
getset

Gets or sets the alpha part of the color.

The alpha part of the color.

int DirectOutput.LedControl.Loader.ColorConfig.Blue
getset

Gets or sets the blue part of the color.

The blue part of the color.

int DirectOutput.LedControl.Loader.ColorConfig.Green
getset

Gets or sets the green part of the color.

The green part of the color.

string DirectOutput.LedControl.Loader.ColorConfig.Name
getset

Gets or sets the name of the color.

The name of the color.

int DirectOutput.LedControl.Loader.ColorConfig.Red
getset

Gets or sets the red part of the color.

The red value.


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