C# Class UserInterface.Visualization

Draws a spectrum graph to a WPF element
Mostra file Open project: mhack/gamenoise Class Usage Examples

Public Methods

Method Description
CreateSpectrumLine ( SpectrumLineParams spectrumLineParams ) : void

Draws a spectrum line graph to a WPF element

Reset ( ) : void

Call this function if you have draw an visualization and want to draw another visualization with other parameter

Visualization ( int bufferSize, int timerSpeed ) : System

Initialize the private variables

Private Methods

Method Description
DrawSteps ( System.Windows.Controls.Panel panel, int height, int width, int stepHeight, int stepDistance, Color color ) : void

Draw white horizontal lines to simulate small steps in the visualization

FitHeight ( int height, float value, bool dynamic ) : int

Fit the value to the specified high

InitVerticalGradient ( System color1, System color2 ) : void

Create an Vertical Gradient

Method Details

CreateSpectrumLine() public method

Draws a spectrum line graph to a WPF element
public CreateSpectrumLine ( SpectrumLineParams spectrumLineParams ) : void
spectrumLineParams SpectrumLineParams
return void

Reset() public method

Call this function if you have draw an visualization and want to draw another visualization with other parameter
public Reset ( ) : void
return void

Visualization() public method

Initialize the private variables
public Visualization ( int bufferSize, int timerSpeed ) : System
bufferSize int Size of the FFT Buffer
timerSpeed int
return System