WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
AnalogAlphaMatrixBitmapAnimationEffect.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
9 
10 namespace DirectOutput.FX.MatrixFX
11 {
17  {
24  protected override AnalogAlpha GetEffectValue(int TriggerValue, PixelData Pixel)
25  {
26  return new AnalogAlpha() { Value = (Pixel.Red + Pixel.Green + Pixel.Blue) / 3, Alpha = (int)((float)Pixel.Alpha * TriggerValue / 255) };
27 
28  }
29 
30  }
31 }
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
override AnalogAlpha GetEffectValue(int TriggerValue, PixelData Pixel)
Gets the value for a single element in the matrix.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Definition: Cab.cs:16
Displays parts of a bitmap as a animation on a matrix of AnalogAlpha elements. Check the docu on the ...
Namespace for objects dealing with layers
The namespace DirectOutput.General contains classes for general use.