如何在C#上创建图形曲线? [英] how to create a graphical curve on C #?

查看:85
本文介绍了如何在C#上创建图形曲线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,这里我试图通过从listcontrol列接收数据来绘制具有X和Y两个轴的图形. m当前正在编程Web服务器
谢谢

hello all, here I''m trying to plot a graph with two axes X and Y,by receiving data from a listcontrol column.I need to get a curve of the thread function second (milliseconds),since I''m currently programming a webserver
thank you

推荐答案

您可以使用Graphics类将图形直接绘制到表单上:

You can use the Graphics class for drawing directly onto your form:

Graphics g = this.CreateGraphics();
g.DrawLine(new Pen(Color.Black, 5), new Point(0,0), new Point(this.Width, 0));



或者,您可以创建一个图像并将其显示在窗体上的PictureBox中. (Google it plz;图像/位图类)



Or you can create a Image and show this in a PictureBox on your form. (Google it plz; Image / Bitmap class)


检查本文..

http://yevol.com/en/vcsharp/applicationdesign/Lesson14.htm [ ^ ]
Check this article..

http://yevol.com/en/vcsharp/applicationdesign/Lesson14.htm[^]


这篇关于如何在C#上创建图形曲线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆