WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
AnalogAlphaMatrixBitmapEffect.cs
Go to the documentation of this file.
4 
5 namespace DirectOutput.FX.MatrixFX
6 {
11  {
12 
19  public override AnalogAlpha GetEffectValue(int TriggerValue, PixelData Pixel)
20  {
21 
22  return new AnalogAlpha() { Value = (Pixel.Red + Pixel.Green + Pixel.Blue) / 3, Alpha = (int)((float)Pixel.Alpha * TriggerValue / 255) };
23 
24  }
25  }
26 }
override AnalogAlpha GetEffectValue(int TriggerValue, PixelData Pixel)
Gets the value for a single element in the matrix.
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
Object containing a analog value (0-255) and a alpha value (0-255).
Definition: AnalogAlpha.cs:11
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Definition: Cab.cs:16
Namespace for objects dealing with layers
The namespace DirectOutput.General contains classes for general use.
Outputs a defined part of a bitmap on a area of a matrix
Displays a defined part of a bitmap on a area of a AnalogAlpha Matrix.