WinCE下动态显示绘图控件

wince下画曲线控件 wince下自定义c#曲线控件,可以设定曲线方向,可以设定曲线宽度和颜色,可设定标题副标题等等,功能齐全。 立即下载

一、要点

    本控件解决了CE下绘图闪烁的问题

二、源代码

namespace RealTimeGraphCtlCF

{

public partial class GraphPane : UserControl

{

private Graphics gHdc;

 

private XAxis xAxis;

 

private YAxis yAxis;

 

private int _xMax;

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue(100)]

public int XAxisMax

{

get { return _xMax; }

set { _xMax = value; }

}

 

private int _yMax;

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue(100)]

public int YAxisMax

{

get { return _yMax; }

set { _yMax = value; }

}

 

private string _xTitle = "X";

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue("X")]

public string XAxisTitle

{

get { return _xTitle; }

set { _xTitle = value; }

}

 

private string _yTitle = "Y";

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue("Y")]

public string YAxisTitle

{

get { return _yTitle; }

set { _yTitle = value; }

}

 

private int _xTicCount = 100;

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue(100)]

public int XAxisTicCount

{

get { return _xTicCount; }

set { _xTicCount = value; }

}

 

private int _yTicCount = 100;

[EditorBrowsable(EditorBrowsableState.Always)]

[DefaultValue(100)]

public int YAxisTicCount

{

get { return _yTicCount; }

set { _yTicCount = value; }

}

 

private Pen _linePen;

[EditorBrowsable(EditorBrowsableState.Never)]

public Pen LinePen

{

get { return _linePen; }

set { _linePen = value; }

}

 

public List<Point> PointList;

 

private const int ticLength = 2;

 

 

 

public GraphPane()

{

InitializeComponent();

this.PointList = new List<Point>();

this._linePen = new Pen(Color.Black, 1);

 

}

 

private void GraphPane_Paint(object sender, PaintEventArgs e)

{

Bitmap b = new Bitmap(this.Width, this.Height);

gHdc = Graphics.FromImage((System.Drawing.Image)b);

 

gHdc.FillRectangle(new SolidBrush(Color.White), this.ClientRectangle);

 

Point orgin = new Point(20, 20);

 

int yAxisLength = ClientRectangle.Height - 2 * orgin.Y;

yAxis = new YAxis(gHdc, this.ClientRectangle, orgin, yAxisLength, _yMax, _yTitle);

yAxis.Draw(_yTicCount, ticLength);

 

int xAxisLength = ClientRectangle.Width - 2 * orgin.X;

xAxis = new XAxis(gHdc, this.ClientRectangle, orgin, xAxisLength, _xMax, _xTitle);

xAxis.Draw(_xTicCount, ticLength);

 

DrawLines(gHdc);

 

e.Graphics.DrawImage((System.Drawing.Image)b, 0, 0);

b.Dispose();

}

 

public void DrawLines(Graphics gHdc)

{

Point previous = new Point();

Point current = new Point();

 

if (PointList.Count >= 2)

{

previous = PointList[0];

for (int i = 1; i < PointList.Count; i++)

{

current = PointList[i];

gHdc.DrawLine(LinePen, previous.X, previous.Y, current.X, current.Y);

previous = current;

}

}

}

 

 

protected override void OnPaintBackground(PaintEventArgs e)

{

}

 

}

}

 

三、参考文献

http://blog.youkuaiyun.com/yefanqiu/archive/2006/11/21/1402520.aspx

WinceChart曲线控件显示Demo wince 系统chart曲线显示控件Demo 并有多种曲线显示类型 立即下载

相关推荐

c# wince 画曲线图

wince系统,曲线波形图控件。可以多X轴,单光标。

WIndowsCE下的图表控件

最近开发需要WindowsCE上进行图表展示,找了很久才找到这个控件。地址:http://blog.sina.com.cn/s/blog_69b6a7c60100w8l1.html,在此谢谢这个博主。 转载于:https://www.cnblogs.com/fishyxj/archive/2012/07/31/2617044.html...

weixin_30929295的博客 289

wince cf3.5 c#语言 vs2008 开发 的led指示灯控件

新建工程 c# 》智能设备 》控件库 public partial class LED : UserControl { bool isonoff; public LED { InitializeComponent ; isonoff false; } [DefaultValue false Description "状态" Category "Behavior" ] [DesignerCategory "Behavior" ] [DefaultValue false ] public bool onoff { get { Insert code here return isonoff; } set { isonoff value; if isonoff { pictureBox1 Visible true; pictureBox2 Visible false; } else { pictureBox1 Visible false; pictureBox2 Visible true; } this Invalidate ; } }">新建工程 c# 》智能设备 》控件库 public partial class LED : UserControl { bool isonoff; public LED { InitializeComponent ; isonoff false; } [DefaultValue false Description "状态" Category &qu [更多]

WINCE下C#画图

       以下代码是我在WINCE下用C#进行画图的程序,希望给一些朋友有点帮助,由于代码写的时候注释太少了,如代码有有读不懂可以联系我,          int temp = 135;        private void timer1_Tick(object sender, EventArgs e)        {            Bitmap bmp = new

Windows CE学习与开发 6285

C# Wince 曲线控件(只有代码,仅供参考)

网上搜来叶兄的代码,很有参考价值。以此为例,我自己还画了几个别的控件。由于环境限制,只把网上搜来的代码保存下来。感谢叶兄

各种自定义wince 控件源码

很多种自定义wince 控件源码,很有参考价值. 有朋友说这个包被破坏了,所以我又上传了一次.这个不要再下载.

wince图片控件

wince图片控件 如透明图片、图片按钮 点击效果等

wince32编程-制作像框-画图工具

1、创建一应用程序,显示一个像框(矩形),像框里显示指定的BMP图片,像框下部是关于图象的说明。 2、编写一应用程序,实现简单的画图。要求能画三种以上不同的图形,如线、矩形、圆等;能选择画笔的粗细、颜色;笔刷的颜色等。

Windows CE 6.0 下的图表控件 ZedGraph

基于ZedGraph源码,修改并编译为适合WindowsCE 6.0 (compact framework 3.5)的控件 (桌面版本上支持的一些功能在CF3.5 下面没有做支持,如Pie 图等), 但常用的曲线和线条是能够画出的,引入Double buffer原理,画图无闪烁。 压缩包包含编译好的dll文件及多语言资源文件,同时附上简单历程的源码和可执行文件包。

Wince 获取当前活动的控件

Wince 获取当前活动的控件,用于Form的KeyPreview属性,实现上下键功能。

wince5.0下C#绘制仪表盘控件及Demo(源码)

自己写的wince下使用C#双缓冲技术绘图仪表盘可用于汽车仪表、工控仪表,控可以直接拿到windows下用,demo程序需要在wicne5.0下运行,有做嵌入式仪表来拿,有需要帮忙,可以发邮件给我changhai203.com@163.com,主题需注明:"优快云文坛求助"字样。

史上最牛的WinCE开发资料

WinCE开发指南.part04 WinCE开发指南.part04 WinCE开发指南.part04 WinCE开发指南.part04

开源wince/window directui界面框架

开源wince/window directui界面框架 更多资料请到百度网盘地地址 http://pan.baidu.com/s/1qWvxXeO 下载

wince简单绘图

=============================================================标题:wince简单绘图摘要:直线,矩形,椭圆,多边形等简单图形的绘制备注:Windows CE + VS2005日期:2010.4.27姓名:朱铭雷====================================================

朱铭雷的日记本 2818

wince 外国界面框架 BeeMobile_iPack

BeeMobile_iPack Speed up your GUI development with the Bee Mobile iPack. Every control is designed to give your Windows Mobile / Windows CE applications a modern look and feel. The iPack combines elegant visuals with intuitive finger-friendly interfaces to create an impressive user experience. Our products are fully supported with Visual Studio Designer, allowing you to visualize your design and cut down on the development time and cost of your applications. The Trial version of iPack contains two controls which are absolutely free . Feel free to use and distribute these controls freely with your end-user applications even if the trial version expires. Try the free 30-day trial now, and see how these two iPack controls alone can give you a competitive edge against other mobile platforms. If you can‘t find the right control for your project we encourage you to suggest it to us. Though we are always hard at work developing new controls for the Bee Mobile iPack (which you will receive automatically with a valid subscription), we are eager to satisfy any demand you might have for specific products. If you have specific requirements about the controls you are looking for, we can create custom controls based on your specification (check the Services section for more details).

手把手教你用Multisim搭建FM直接调频电路(附完整波形分析)

本文通过Multisim仿真软件,手把手教你搭建FM直接调频电路。详细介绍了从核心概念理解、压控振荡器(VCO)参数设置、电路搭建与波形观测,到带通滤波器设计与信号优化的完整流程。通过对比滤波前后的时域波形与频谱分析,帮助读者直观理解频率调制原理,并提供了常见问题的排查思路与参数调试方法,将抽象的通信理论转化为可操作的实践技能。

weixin_29230773的博客 214
上一篇: 解决VS2005中,线程间不可互操作问题的一揽子解决方案
下一篇: Wince下的手写输入法
changesway
博客等级 码龄19年 50粉丝 30原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值