WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
This displays a defined part of a bitmap as a animation in the given colors on a area of a RGBAtoy Matrix. The effect take the overall brightness of the pixels of the bitmap to control the brightness of the specified colors for each pixel. More...
Public Member Functions | |
override void | Init (Table.Table Table) |
Initializes the effect. Resolves object references, extracts source image data. More... | |
Public Member Functions inherited from DirectOutput.FX.MatrixFX.MatrixBitmapAnimationEffectBase< RGBAColor > | |
override void | Trigger (Table.TableElementData TableElementData) |
Triggers the effect with the given data. More... | |
override void | Init (Table.Table Table) |
Initializes the effect. Resolves object references, extracts source image data. More... | |
override void | Finish () |
Finishes the effect and releases object references More... | |
Protected Member Functions | |
override RGBAColor | GetEffectValue (int TriggerValue, PixelData Pixel) |
Gets the value for a single element in the matrix. More... | |
Protected Member Functions inherited from DirectOutput.FX.MatrixFX.MatrixBitmapAnimationEffectBase< RGBAColor > | |
abstract MatrixElementType | GetEffectValue (int TriggerValue, PixelData Pixel) |
Gets the value which is to be applied to all elements of the matrix area controlled by the effect. This methed must be overwritten. More... | |
Properties | |
RGBAColor | ActiveColor [get, set] |
Gets or sets the active color. The FadeMode property defines how this value is used. More... | |
RGBAColor | InactiveColor [get, set] |
Gets or sets the inactive color. The FadeMode property defines how this value is used. More... | |
Properties inherited from DirectOutput.FX.MatrixFX.MatrixBitmapAnimationEffectBase< RGBAColor > | |
MatrixAnimationStepDirectionEnum | AnimationStepDirection [get, set] |
Gets or sets the animation direction. More... | |
int | AnimationStepSize [get, set] |
Gets or sets the size of the step in pixels or frames (depending on the AnimationStepDirection) to the next frame of the animation. More... | |
int | AnimationFrameCount [get, set] |
Gets or sets the number of frames for the whole animation. More... | |
AnimationBehaviourEnum | AnimationBehaviour [get, set] |
Gets or sets the animation behaviour. More... | |
int | AnimationFrameDurationMs [get, set] |
Gets or sets the animation frame duration in ms. More... | |
int | BitmapFrameNumber [get, set] |
Gets or sets the number of the frame to be displayed. More... | |
int | BitmapTop [get, set] |
Gets or sets the top of the the part of the bitmap which is to be displayed. More... | |
int | BitmapLeft [get, set] |
Gets or sets the left boundary of the the part of the bitmap which is to be displayed. More... | |
int | BitmapWidth [get, set] |
Gets or sets the width of the the part of the bitmap which is to be displayed. More... | |
int | BitmapHeight [get, set] |
Gets or sets the height of the the part of the bitmap which is to be displayed. More... | |
FastBitmapDataExtractModeEnum | DataExtractMode [get, set] |
Gets or sets the mode how data is extracted from the source bitmap. More... | |
FilePattern | BitmapFilePattern [get, set] |
Gets or sets the file pattern which is used to load the bitmap file for the effect. More... | |
Additional Inherited Members | |
Protected Attributes inherited from DirectOutput.FX.MatrixFX.MatrixBitmapAnimationEffectBase< RGBAColor > | |
PixelData[][,] | Pixels |
This displays a defined part of a bitmap as a animation in the given colors on a area of a RGBAtoy Matrix. The effect take the overall brightness of the pixels of the bitmap to control the brightness of the specified colors for each pixel.
The properties of the effect allow you to select the parts of the bitmap to display for the animation as well as the area of the matrix on which the bitmap is displayed. Depending on the size of your bitmap you might choose different modes for the image extraction.
The effect supports numerous image formats, inluding png, gif (also animated) and jpg.
The image extraction takes place upon initalization of the framework. While the framework is active, it only outputs the previously extracted and scaled data to allow for better performance.
Definition at line 22 of file RGBAMatrixColorScaleBitmapAnimationEffect.cs.
|
protected |
Gets the value for a single element in the matrix.
TriggerValue | The trigger value. |
Pixel | A pixel representing a element in the matrix. |
Definition at line 63 of file RGBAMatrixColorScaleBitmapAnimationEffect.cs.
override void DirectOutput.FX.MatrixFX.RGBAMatrixColorScaleBitmapAnimationEffect.Init | ( | Table.Table | Table | ) |
Initializes the effect. Resolves object references, extracts source image data.
Definition at line 80 of file RGBAMatrixColorScaleBitmapAnimationEffect.cs.
|
getset |
Gets or sets the active color. The FadeMode property defines how this value is used.
The active color.
Definition at line 34 of file RGBAMatrixColorScaleBitmapAnimationEffect.cs.
|
getset |
Gets or sets the inactive color. The FadeMode property defines how this value is used.
The inactive color.
Definition at line 49 of file RGBAMatrixColorScaleBitmapAnimationEffect.cs.