求助,曲线加粗的语句!谢谢!
想把画上去的波形加粗,请问有什么语句吗?
回复 2楼 红色警戒
比如,这是我编的一段程序,画了几段不同的直线,像分段函数是的,请问怎么可以加粗这条曲线呢?就像最后一句改颜色的那样!谢谢!!!WaveformDataBlock baoluoBlock = null;//P71 固定格式的3句
WaveformDataSource baoluoMywave = null;
UserDataSources MySources = UserDataSources.Instance;
//UserDataSources MySources = UserDataSources.Instance;
MySources.RemoveDatasource(MySources["CSIDemo.baoluoMyResult"]);
baoluoMywave = MySources.CreateWaveForm("CSIDemo.baoluoMyResult", "限制曲线");
baoluoMywave.XUnits = m_MySource.XUnit;
baoluoMywave.YUnits = m_MySource.YUnit;
baoluoMywave.DisplayRangeFrom = 60;
baoluoMywave.DisplayRangeTo = -60;
int num = Segments[1].NumberOfSamples; ;
double[] baoluo = new double[num];
//textBox4.Text = Conversion.ConvertDoubleToString(baoluo.Length, 9, null);
for (int i = 0; i <= 0.0125 * m_Recorder.HighSamplingFrequency; i++)//绘制上包络线
{
baoluo[i] = 50;//直线
}
for (int i = (int)(0.0125 * m_Recorder.HighSamplingFrequency + 1); i <= 0.0825 * m_Recorder.HighSamplingFrequency; i++)
{
baoluo[i] = 29 + (0.0825 * m_Recorder.HighSamplingFrequency - i) * (50 - 29) / (0.0825 * m_Recorder.HighSamplingFrequency - 0.0125 * m_Recorder.HighSamplingFrequency);
}
for (int i = (int)(0.0825 * m_Recorder.HighSamplingFrequency + 1); i < baoluo.Length; i++)
{
baoluo[i] = 29;
}
baoluoBlock = baoluoMywave.AddDataBlock(Segments[1].StartTime, Segments[1].SampleInterval);
baoluoBlock.WriteWaveform(0, baoluo);
//textBox5.Text = "5";
string[] baoluodatasource = new string[] { "CSIDemo.baoluoMyResult" };
display1.AddDataSources(baoluodatasource);
display1.TimeDisplay.CtlLayout.ActiveTrace.TraceProp.PrimaryColor = 0x0000FF; // red