WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
RGBAMatrixBitmapEffect.cs
Go to the documentation of this file.
4 
5 namespace DirectOutput.FX.MatrixFX
6 {
17  {
18 
25  public override RGBAColor GetEffectValue(int TriggerValue, PixelData Pixel)
26  {
27 
28 
29  RGBAColor D = Pixel.GetRGBAColor();
30 
31  D.Alpha = (int)((float)Pixel.Alpha * TriggerValue / 255);
32 
33  return D;
34 
35  }
36  }
37 }
This class stores information on colors used for toys and effects (e.g. RGBLed).
Definition: RGBAColor.cs:14
The namespace DirectOutput.Cab.Toys contains all toy related classes.
Struct holding the data for a single pixel in a bitmap.
Definition: PixelData.cs:12
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Definition: Cab.cs:16
int Alpha
Alpha value for the color.
Definition: RGBAColor.cs:64
The RGBAMatrixBitmapEffect displays a defined part of a bitmap on a area of a RGBAtoy Matrix...
Namespace for objects dealing with layers
override RGBAColor GetEffectValue(int TriggerValue, PixelData Pixel)
Gets the value for a single element in the matrix.
The namespace DirectOutput.General contains classes for general use.
Outputs a defined part of a bitmap on a area of a matrix