DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
|
This class stores information on colors used for toys and effects (e.g. RGBLed). More...
Public Member Functions | |
RGBAColor | Clone () |
Clones this instance. More... | |
RGBAColor | GetRGBAColor () |
Gets a new RGBAColor instance with the same color values. More... | |
bool | SetColor (int Red, int Green, int Blue, int Alpha) |
Sets the RGBA components of the Color. More... | |
bool | SetColor (int Red, int Green, int Blue) |
Sets the RGB components of the Color. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
bool | SetColor (RGBColor Color) |
Sets the RGB components of the RGBAColor. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. More... | |
bool | SetColor (string Color) |
Sets the RGBA components of the Color. The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values. The following values are accepted: More... | |
RGBAColor () | |
Initializes a new instance of the RGBAColor class. More... | |
RGBAColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue) | |
Initializes a new instance of the RGBAColor class. If all color components are set to 0, the alpha value will be set to 0, otherwise the alpha value will be set to 255. More... | |
RGBAColor (int BrightnessRed, int BrightnessGreen, int BrightnessBlue, int Alpha) | |
Initializes a new instance of the RGBAColor class. More... | |
RGBAColor (string Color) | |
Initializes a new instance of the RGBAColor class. The parameter string Color is first parsed for hexadecimal color codes and afterwards checked for comma separated color values. The following values are accepted: More... | |
RGBAColor (RGBColor RGBColor) | |
Initializes a new instance of the RGBAColor class. The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255. 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... | |
int | Alpha [get, set] |
Alpha value for the color. More... | |
string | HexColor [get, set] |
Returns the hexadecimal code for the color. More... | |
This class stores information on colors used for toys and effects (e.g. RGBLed).
DirectOutput.General.Color.RGBAColor.RGBAColor | ( | ) |
Initializes a new instance of the RGBAColor class.
DirectOutput.General.Color.RGBAColor.RGBAColor | ( | int | BrightnessRed, |
int | BrightnessGreen, | ||
int | BrightnessBlue | ||
) |
Initializes a new instance of the RGBAColor class.
If all color components are set to 0, the alpha value will be set to 0, otherwise the alpha value will be set to 255.
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
DirectOutput.General.Color.RGBAColor.RGBAColor | ( | int | BrightnessRed, |
int | BrightnessGreen, | ||
int | BrightnessBlue, | ||
int | Alpha | ||
) |
Initializes a new instance of the RGBAColor class.
BrightnessRed | The brightness for red. |
BrightnessGreen | The brightness for green. |
BrightnessBlue | The brightness for blue. |
Alpha | The alpha value for the color. |
DirectOutput.General.Color.RGBAColor.RGBAColor | ( | string | Color | ) |
Initializes a new instance of the RGBAColor class.
The parameter string Color is first parsed for hexadecimal color codes and afterwards checked for comma separated color values.
The following values are accepted:
Color | The color string. |
DirectOutput.General.Color.RGBAColor.RGBAColor | ( | RGBColor | RGBColor | ) |
RGBAColor DirectOutput.General.Color.RGBAColor.Clone | ( | ) |
Clones this instance.
RGBAColor DirectOutput.General.Color.RGBAColor.GetRGBAColor | ( | ) |
Gets a new RGBAColor instance with the same color values.
bool DirectOutput.General.Color.RGBAColor.SetColor | ( | int | Red, |
int | Green, | ||
int | Blue, | ||
int | Alpha | ||
) |
Sets the RGBA components of the Color.
Red | Red brightness |
Green | Green brightness |
Blue | Blue brightness |
Alpha | Alpha value for the color |
bool DirectOutput.General.Color.RGBAColor.SetColor | ( | int | Red, |
int | Green, | ||
int | Blue | ||
) |
Sets the RGB components of the Color.
The Alpha value is set to 0 if all color components are set to 0, otherwise the Alpha value will be set to 255.
Red | Red brightness |
Green | Green brightness |
Blue | Blue brightness |
bool DirectOutput.General.Color.RGBAColor.SetColor | ( | RGBColor | Color | ) |
bool DirectOutput.General.Color.RGBAColor.SetColor | ( | string | Color | ) |
Sets the RGBA components of the Color.
The parameter string Color ist first parsed for hexadecimal color codes and afterwards checked for comma separated color values.
The following values are accepted:
Color | String describing the color. |
|
getset |
Alpha value for the color.
Alpha value between 0 and 255.
|
getset |
Brightness for Blue.
Brightness between 0 and 255.
|
getset |
Brightness for Green.
Brightness between 0 and 255.
|
getset |
Returns the hexadecimal code for the color.
6 digit hexadecimal color code with leading #(e.g. #ff0000 for red).
|
getset |
Brightness for Red.
Brightness between 0 and 255.