30 get {
return _ActiveColor; }
31 set { _ActiveColor = value; }
45 get {
return _InactiveColor; }
46 set { _InactiveColor = value; }
63 D.
Alpha = (int)((
float)Pixel.
Alpha * TriggerValue / 255);
69 public override void Init(Table.Table Table)
75 for (
int Y = 0; Y <= Pixels.GetUpperBound(1); Y++)
78 for (
int X = 0; X <= Pixels.GetUpperBound(0); X++)
82 double Brightness = ((double)(P.
Red + P.
Green + P.
Blue) / 3).Limit(0, 255);
84 P.
Red = (byte)(InactiveColor.Red + (
int)((float)(ActiveColor.Red - InactiveColor.Red) * Brightness / 255)).Limit(0, 255);
85 P.
Green = (byte)(InactiveColor.Green + (
int)((float)(ActiveColor.Green - InactiveColor.Green) * Brightness / 255)).Limit(0, 255);
86 P.
Blue = (byte)(InactiveColor.Blue + (
int)((float)(ActiveColor.Blue - InactiveColor.Blue) * Brightness / 255)).Limit(0, 255);
87 P.
Alpha = (byte)(InactiveColor.Alpha + (
int)((float)(ActiveColor.Alpha - InactiveColor.Alpha) * Brightness / 255)).Limit(0, 255);
This class stores information on colors used for toys and effects (e.g. RGBLed).
The namespace DirectOutput.Cab.Toys contains all toy related classes.
Struct holding the data for a single pixel in a bitmap.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
int Alpha
Alpha value for the color.
Namespace for objects dealing with layers
The RGBAMatrixBitmapEffect displays a defined part of a bitmap in the given colors on a area of a RGB...
override RGBAColor GetEffectValue(int TriggerValue, PixelData Pixel)
Gets the value for a single element in the matrix.
override void Init(Table.Table Table)
The namespace DirectOutput.General contains classes for general use.
Outputs a defined part of a bitmap on a area of a matrix