用C#绘制实时曲线图源代码

上传者: zhoufoxcn | 上传时间: 2021-04-20 16:10:04 | 文件大小: 35KB | 文件类型: RAR
在实际项目中我们经常需要绘制一些实时的数据图片,比如当前各公司的用水量、用电量还有播放声音视频时实时显示当前的声频等等,在我们最熟悉的任务管理器也有这么一个功能,用来表示当前CPU的使用频率,最近笔者刚刚给朋友完成了一个类似的功能图,用曲线图来实时表示一些实际数据,由于形象直观,很受客户欢迎。不过由于某些原因,本人不能将实际项目中的代码拿出来给大家分享,只能模拟了一个简单的实现,代码没有过多优化,所以还存在很多可以优化的地方,希望有兴趣的朋友自己完善。为了操作和应付变化,所以将绘制曲线图的功能单独封装成一个类,里面的数据完全是模拟的,在横向坐标上每个像素间隔用一个点来控制(实际中可能会加大这个距离),横向是个随机生成的数(实际开发中这应该来自我们的实时数据按比率计算得来的),显示窗体中用到了一个线程来定时绘制实时曲线。全文介绍请看:http://blog.csdn.net/zhoufoxcn/archive/2008/07/21/2682027.aspx

文件下载

资源详情

[{"title":"( 22 个子文件 35KB ) 用C#绘制实时曲线图源代码","children":[{"title":"RealtimeCurve","children":[{"title":"RealtimeCurve","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"RealtimeCurve.exe <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"RealtimeCurve.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"RealtimeCurve.vshost.exe <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"RealtimeCurve.csproj.FileListAbsolute.txt <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"RealtimeCurve.exe <span style='color:#111;'> 20.00KB </span>","children":null,"spread":false},{"title":"RealtimeCurve.csproj.GenerateResource.Cache <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"RealtimeCurve.FormRealTime.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"RealtimeCurve.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"RealtimeCurve.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"FormRealTime.Designer.cs <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"FormRealTime.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"FormRealTime.cs <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"RealTimeImageMaker.cs <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"RealtimeCurve.csproj <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"RealtimeCurve.sln <span style='color:#111;'> 928B </span>","children":null,"spread":false},{"title":"RealtimeCurve.suo <span style='color:#111;'> 25.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明