基于C#的波形显示控件的实现源码

上传者: skylvzhoulihe | 上传时间: 2019-12-21 21:08:03 | 文件大小: 231KB | 文件类型: rar
基于C#的波形显示控件的实现源码 计算机技术的飞速发展使得其在自动化系统中的应用日益增强。大量监控、图像数据显示软件活跃在自动化工业及自动化教学领域。同时,软件系统的日益复杂化使得模块化开发变得尤为重要。本课题所设计的基于C#的波形显示控件就可在微软.NET平台下进行代码功能重用,达到模块化开发和快速开发的目的,使得程序员能够集中精力设计软件的具体业务流程,而不必担心波形呈现的问题。 本文先介绍了.NET平台下用户控件开发的基本方法,以及用C#描述的GDI+图形开发技术,然后提出一种基于C#的波形显示控件的设计思路,并对波形坐标值转换、坐标标尺、工具栏、局部放大等具体的设计细节进行详细解析。 本课题设计的波形显示控件实现了同时显示多条数据曲线、局部放大查看、波形显示自动调整最佳坐标范围、动态显示波形等功能。创新之处在于设计了一种方法,使得波形显示控件的坐标轴的起点值和终点值能够以浮点数显示,并自动根据当前波形显示控件的大小,描绘出符合用户视觉的坐标标尺。 波形显示控件实现的功能 (1) 多条波形数据的显示。 该波形显示控件能够同时显示多条波形数据,用户能够控制每条波形数据的显示颜色、线宽、线帽、以及线转折的样式。并且提供了三种波形数据显示的方式:连续数据线、离散点、条形图。 (2) 友好坐标标尺的显示。 该波形显示控件能够根据当前显示数据的坐标范围,友好地显示坐标标尺。例如X轴坐标起始值为34.2,结束坐标值为100.7,则控件不是简单得将坐标10等分并显示并不友好的坐标值,而是通过计算当前波形显示控件的大小,显示40、50……这样的友好的坐标值,并判断是否需要继续在40到50的坐标值之间显示更小分度的坐标值。 (3) 波形显示区域网格的显示。 该波形显示控件可以显示同坐标标尺的坐标线相对应的网格,使得用户能够更直观地观察波形数据。 (4) 波形的局部放大。 该波形显示控件提供了波形局部放大的功能。并根据实际使用和测试,控制了波形放大的精度,以免产生数据溢出的问题。 (5) 坐标自动调整。 该波形显示控件能够根据当前要显示的波形数据的值,自动选择最佳的坐标范围,来直观地在控件的波形显示区域显示完整的波形曲线。 (6) 外观颜色方案的修改。 该波形显示控件能够修改外观样式,诸如背景色、网格颜色、坐标线颜色、坐标值颜色等都可以进行调整,以使控件外观能够符合软件整体风格。 (7) 其他细节。 该波形显示控件还设计了一个工具栏,可以方面地使用网格显示、局部放大、坐标自动调整、恢复默认坐标功能。另外还设计右键菜单,能够显示当前鼠标位置的具体坐标值,以及工具栏按钮的快捷按钮。

文件下载

资源详情

[{"title":"( 55 个子文件 231KB ) 基于C#的波形显示控件的实现源码","children":[{"title":"ZGraph","children":[{"title":"ZGraph","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"ZGraph.pdb <span style='color:#111;'> 83.50KB </span>","children":null,"spread":false},{"title":"ZGraph.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"ZGraph.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"ZGraph.xml <span style='color:#111;'> 15.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"ZGraph.csproj.FileListAbsolute.txt <span style='color:#111;'> 675B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ZGraph.pdb <span style='color:#111;'> 83.50KB </span>","children":null,"spread":false},{"title":"ZGraph.csproj.GenerateResource.Cache <span style='color:#111;'> 770B </span>","children":null,"spread":false},{"title":"ZGraph.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"ZhengJuyin.UI.ZGraph.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ZGraph_Drawing.cs <span style='color:#111;'> 53.01KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"ZGraph.designer.cs <span style='color:#111;'> 32.72KB </span>","children":null,"spread":false},{"title":"ZGraph_ParamPrivate.cs <span style='color:#111;'> 9.23KB </span>","children":null,"spread":false},{"title":"ZGraph_FuncPrivate.cs <span style='color:#111;'> 11.05KB </span>","children":null,"spread":false},{"title":"ZGraph.csproj <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"ZGraph_Menu.cs <span style='color:#111;'> 23.84KB </span>","children":null,"spread":false},{"title":"ZGraph_ParamPublic.cs <span style='color:#111;'> 9.55KB </span>","children":null,"spread":false},{"title":"ZGraph_FuncPublic.cs <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false},{"title":"ZGraph.cs <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"ZGraph.resx <span style='color:#111;'> 5.88KB </span>","children":null,"spread":false}],"spread":false},{"title":"ZGraph.sln <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"from.gif <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"ZGraph.suo <span style='color:#111;'> 19.00KB </span>","children":null,"spread":false},{"title":"最新Asp.Net源码下载.url <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"说明.txt <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"Test","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"Test.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"ZGraph.pdb <span style='color:#111;'> 83.50KB </span>","children":null,"spread":false},{"title":"Test.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"Test.pdb <span style='color:#111;'> 63.50KB </span>","children":null,"spread":false},{"title":"ZGraph.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"ZGraph.xml <span style='color:#111;'> 15.51KB </span>","children":null,"spread":false},{"title":"Test.exe <span style='color:#111;'> 56.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false},{"title":"Test.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Test.pdb <span style='color:#111;'> 63.50KB </span>","children":null,"spread":false},{"title":"Test.csproj.GenerateResource.Cache <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Test.csproj.FileListAbsolute.txt <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"Test.FormTest.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Test.exe <span style='color:#111;'> 56.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Test.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.77KB </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.08KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"FormTest.Designer.cs <span style='color:#111;'> 77.44KB </span>","children":null,"spread":false},{"title":"Test.sln <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"Test.csproj <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"ZGraph.dll <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"FormTest.resx <span style='color:#111;'> 6.07KB </span>","children":null,"spread":false},{"title":"ZGraph.xml <span style='color:#111;'> 15.51KB </span>","children":null,"spread":false},{"title":"FormTest.cs <span style='color:#111;'> 37.06KB </span>","children":null,"spread":false},{"title":"Test.suo <span style='color:#111;'> 17.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_39796596 :
    感觉用着还不错,整体可以,还有源码,可以学习下!
    2020-08-19
  • Bingo1987er :
    很好,很强大
    2016-09-01
  • ziyan0218 :
    整体很不错,说明详细。
    2015-12-10
  • zdyxue :
    正是我需要的,谢谢
    2015-09-07
  • zhishang888 :
    这个真的是非常非常非常的有用,最近正好要做上位机显示下位机采集的波形数据,这个正好用到,稍微修改一下就可以用,很方便。
    2015-09-05

免责申明

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