Click or drag to resize
Accord.NET (logo)

WavechartAddWaveform Method (String, Color, Int32, Boolean)

Add Waveform to the chart.

Namespace:  Accord.Controls
Assembly:  Accord.Controls.Audio (in Accord.Controls.Audio.dll) Version: 3.8.0
Syntax
public void AddWaveform(
	string name,
	Color color,
	int width,
	bool updateYRange
)
Request Example View Source

Parameters

name
Type: SystemString
Waveform name.
color
Type: System.DrawingColor
Waveform color.
width
Type: SystemInt32
Waveform width.
updateYRange
Type: SystemBoolean
Specifies if RangeY should be updated.
Remarks
Remarks

Adds new empty data series to the collection of data series.

The updateYRange parameter specifies if the waveform may affect displayable Y range. If the value is set to false, then displayable Y range is not updated, but used the range, which was specified by user (see RangeY property). In the case if the value is set to true, the displayable Y range is recalculated to fully fit the new data series.

See Also