使用C#.net创建图 [英] Create a diagram using C#.net

查看:67
本文介绍了使用C#.net创建图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

在C#.net Windows应用程序中,如何使用直线和圆弧在表单中创建图表.

谢谢与问候
T.sudhakara rao

Dear All,

In C#.net windows application, How to create a diagram in a form using lines and arcs.

Thanks & Regards
T.sudhakara rao

推荐答案

此链接可能对您有帮助
http://stackoverflow.com/questions/8312413/how- to-draw-shapes-in-panels-of-windows-form [
This link may help you
http://stackoverflow.com/questions/8312413/how-to-draw-shapes-in-panels-of-windows-form[^]


您需要选中此选项.

http://www.dotnettutorials.com/tutorials/graphics/winforms-drawing-cs.aspx [^ ]
You need to check this.

http://www.dotnettutorials.com/tutorials/graphics/winforms-drawing-cs.aspx[^]



请参考,
hi
refer this,
use namespace system.drawing;

System.Drawing.Graphics graphics = this.CreateGraphics();
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(100, 100, 200, 200);
graphics.DrawEllipse(System.Drawing.Pens.Black, rectangle);
graphics.DrawRectangle(System.Drawing.Pens.Red, rectangle);


这篇关于使用C#.net创建图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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