C# 클래스 UserInterface.Visualization

Draws a spectrum graph to a WPF element
파일 보기 프로젝트 열기: mhack/gamenoise 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateSpectrumLine() 공개 메소드

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

Reset() 공개 메소드

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

Visualization() 공개 메소드

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