| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 663 人关注过本帖
标题:求助,曲线加粗的语句!谢谢!
取消只看楼主 加入收藏
和谐CRH
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-5-4
结帖率:100%
收藏
已结贴  问题点数:6 回复次数:2 
求助,曲线加粗的语句!谢谢!
想把画上去的波形加粗,请问有什么语句吗?
搜索更多相关主题的帖子: 曲线 
2011-05-19 15:43
和谐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
快速回复:求助,曲线加粗的语句!谢谢!
数据加载中...
 
   



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

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