WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
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.

Definition at line 12 of file ColorConfig.cs.

Constructor & Destructor Documentation

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.

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

Definition at line 139 of file ColorConfig.cs.

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.

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.

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

Definition at line 75 of file ColorConfig.cs.

Property Documentation

int DirectOutput.LedControl.Loader.ColorConfig.Alpha
getset

Gets or sets the alpha part of the color.

The alpha part of the color.

Definition at line 64 of file ColorConfig.cs.

int DirectOutput.LedControl.Loader.ColorConfig.Blue
getset

Gets or sets the blue part of the color.

The blue part of the color.

Definition at line 51 of file ColorConfig.cs.

int DirectOutput.LedControl.Loader.ColorConfig.Green
getset

Gets or sets the green part of the color.

The green part of the color.

Definition at line 44 of file ColorConfig.cs.

string DirectOutput.LedControl.Loader.ColorConfig.Name
getset

Gets or sets the name of the color.

The name of the color.

Definition at line 29 of file ColorConfig.cs.

int DirectOutput.LedControl.Loader.ColorConfig.Red
getset

Gets or sets the red part of the color.

The red value.

Definition at line 37 of file ColorConfig.cs.


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