WANALYZER_HORIZONTAL_LINE structure |
|
The WANALYZER_HORIZONTAL_LINE structure describes settings applied to a horizontal line added to the Waveform Analyzer through the GraphicItemHorizontalLineAdd. The current settings can be retrieved through the GraphicItemHorizontalLineParamsGet method and modified through the GraphicItemHorizontalLineParamsSet method.
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;
};
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:
|