Draws the spectrum line graph with peak hold directly on the provided GDI+ graphics.
Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
public bool CreateSpectrumLinePeak( int channel, Graphics g, Rectangle clipRectangle, Color color1, Color color2, Color color3, Color background, int linewidth, int peakwidth, int distance, int peakdelay, bool linear, bool fullSpectrum, bool highQuality )
Parameters
- channel
- Type: SystemInt32
The channel for which to create the spectrum graph. - g
- Type: System.DrawingGraphics
The GDI+ graphics object where to draw the wave form (ie. can be taken directly from a PaintEventArgs). - clipRectangle
- Type: System.DrawingRectangle
The rectangle describing the size of the wave form to draw (ie. can be taken directly from a PaintEventArgs). - color1
- Type: System.DrawingColor
The base color (normal) for the FFT data. - color2
- Type: System.DrawingColor
The peak color for the FFT data. - color3
- Type: System.DrawingColor
The peak hold color for the FFT data. - background
- Type: System.DrawingColor
The background color to be used when drawing the image. - linewidth
- Type: SystemInt32
The thickness of the line (in pixel). - peakwidth
- Type: SystemInt32
The thickness of the peak line (in pixel). - distance
- Type: SystemInt32
The distance between the lines (in pixel). - peakdelay
- Type: SystemInt32
The delay how fast the peaks should fall (0=no delay, the higher the value, the slower the peaks will fall). - linear
- Type: SystemBoolean
, if linear scaling (see ScaleFactorLinear) should be applied to the FFT data. , to scale by Sqr (see ScaleFactorSqr) to make low values more visible (recommended). - fullSpectrum
- Type: SystemBoolean
, if the full frequency spectrum should be shown (across the whole width of the image). , if the width of the image should be use (in this case as much frequencies are shown - starting with the lower values - as fit into the width). - highQuality
- Type: SystemBoolean
, if anti alias should be used when drawing. will draw in high speed mode.
Return Value
Type: Boolean, if successfully painted, else .
Remarks
See Also