标题:求助,曲线加粗的语句!谢谢!
只看楼主
和谐CRH
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-5-4
结帖率:100%
已结贴  问题点数:6 回复次数:3 
求助,曲线加粗的语句!谢谢!
想把画上去的波形加粗,请问有什么语句吗?
搜索更多相关主题的帖子: 曲线 
2011-05-19 15:43
红色警戒
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:19
帖 子:444
专家分:2967
注 册:2005-11-20
得分:4 
什么曲线,把问题说清楚些。

2011-05-19 22:41
和谐CRH
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-5-4
得分:0 
回复 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

2011-05-20 09:46
和谐CRH
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-5-4
得分:0 
回复 2楼 红色警戒
版主能帮忙解答一下吗?
2011-05-24 16:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-340431-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.084140 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved