Ejemplo n.º 1
0
 public WaveformRenderingProgress(WaveformDimensions waveformDimensions,
                                  WaveformSection waveformSection,
                                  Canvas mainCanvas,
                                  PolyLineSegment leftWaveformPolyLine, PolyLineSegment rightWaveformPolyLine)
 {
     this._waveformDimensions    = waveformDimensions;
     this._mainCanvas            = mainCanvas;
     this._leftWaveformPolyLine  = leftWaveformPolyLine;
     this._rightWaveformPolyLine = rightWaveformPolyLine;
     this._pointThickness        = this._waveformDimensions.Width() / (int)((waveformSection.End - waveformSection.Start) / 2.0d);
     this._centerHeight          = this._mainCanvas.RenderSize.Height / 2.0d;
 }
Ejemplo n.º 2
0
 public bool Equals(WaveformSection other)
 {
     return(this.Start == other.Start && this.End == other.End);
 }
 public CachedWaveformObservable(float[] waveformFloats, WaveformSection section)
 {
     this._waveformFloats = waveformFloats;
     this._section        = section;
     this._cachedIndexes  = Enumerable.Range(section.Start, section.End - section.Start).ToList();
 }