WANALYZER_HORIZONTAL_LINE structure |
|
The WANALYZER_HORIZONTAL_LINE structure (defined as WANALYZER_HORIZONTAL_LINE_DLL when used for COM interoperability) describes settings applied to a horizontal line added to the Waveform Analyzer through the WaveformAnalyzer.GraphicItemHorizontalLineAdd. The current settings can be retrieved through the WaveformAnalyzer.GraphicItemHorizontalLineParamsGet method and modified through the WaveformAnalyzer.GraphicItemHorizontalLineParamsSet method.
For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.
For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.
C# definition
public struct WANALYZER_HORIZONTAL_LINE
{
public Color color;
public enumHorizontalLineChannel nChannel;
public enumWaveformLineDashStyles nDashStyle;
public Int16 nHeightInPix;
public Int16 nTranspFactor;
public Int16 nVertPosInPerc;
public enumLineCaps nLeftCap;
public enumLineCaps nRightCap;
public enumLineDashCaps nDashCap;
}
Definition for COM Interoperability
public struct WANALYZER_HORIZONTAL_LINE_DLL
{
public Int32 color;
public Int32 nChannel;
public Int32 nDashStyle;
public Int16 nHeightInPix;
public Int16 nTranspFactor;
public Int16 nVertPosInPerc;
public Int32 nLeftCap;
public Int32 nRightCap;
public Int32 nDashCap;
}
Member |
Description |
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Color used for rendering the line. |
|||||||||||||||||||||||||
Audio channel on which the horizontal line is drawn. Supported values are the following:
|
|||||||||||||||||||||||||
Line dash style. Supported values are the following:
On the screenshot below you can see the different types of horizontal lines with the corresponding value displayed on the buddy text:
|
|||||||||||||||||||||||||
Height of the line expressed in pixels. |
|||||||||||||||||||||||||
Transparent factor. This value can range from 0 (total opacity) to 255 (total transparency). Values outside of this range will be automatically capped to the nearest valid value. |
|||||||||||||||||||||||||
Vertical position of the line expressed in percentage of wave amplitude. May assume values from -100 to 100: a negative value indicates that the line should be drawn over negative waveform peaks. In case you should be willing the set the line position based upon a logarithmic scale, you could convert your value in dB to a value in percentage using the following formula: ValueInPerc = 100 * pow (10, ValueInDB/20);
On the screenshot below you can see 3 horizontal lines, 2 on positive peaks, respectively at 70% and 25% of the waveform amplitude, and one on negative peaks at -80% of the waveform amplitude.
|
|||||||||||||||||||||||||
Type of cap for the left end of the line. Supported values are the following:
On the screenshot below you can see the different types of line caps with the corresponding value displayed on the buddy text:
|
|||||||||||||||||||||||||
Type of cap for the right end of the line. Supported values are the same as seen for the nLeftCap field above. |
|||||||||||||||||||||||||
Type of dash/dot cap for the line. Supported values are the following:
On the screenshot below you can see the different types of line dash caps with the corresponding value displayed on the buddy text:
|