C#画图问题~~~~~~~~~(画图高手,像素高手)请进??????????????????????????? 怎么用c#画1.点2.椭圆3.多义线4.自由线 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在 paint事件中:private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e){ Graphics g= e.Graphics; using (GraphicsPath grp=new GraphicsPath()) { grp.AddEllipse(100,200,300,522); g.DrawPath(Pens.Black,grp); }}这是椭圆的画法,别的类似只要把AddEllipse换成别的就行了 这个一下说不清楚建议看msdn GDI+ 查MSDN的System.Drawing.Drawing2D;和System.Drawing两个命名空间,暴多,而且很容易。你的要求加起来只要20行左右。 Graphics g= this.panel1.CreateGraphics(); using (GraphicsPath grp=new GraphicsPath()) { grp.AddEllipse(100,200,300,522); g.DrawPath(Pens.Black,grp); } 重载Panel的OnPaint方法。在视图设计器选择panel,按F4,在事件里双击Paint事件。 我是在菜单栏里面选中画的但是窗体以改变就有不行了this.Paint +=new PaintEventHandler(Form1_Paint); Form1_Paint{ Graphics g= this.panel1.CreateGraphics(); using (GraphicsPath grp=new GraphicsPath()) { grp.AddEllipse(100,200,300,522); g.DrawPath(Pens.Black,grp); }}这个它是启动窗体就画 ~~~我想在我点击菜单的时候在画 为什么查新到第300条就得不到数据了呢?怎么解决 线程问题,大家看看问题何在。 vs2010的问题 隐藏不需要的类名称 Flowlayoutpanel的问题,实现滚动,但是要隐藏滚动条! C#调用Vc++的DLL的回调函数导致程序崩溃 这个怎么用正则截取URL和标题啊 又一个字符串的问题,大家帮忙看一下 如何搜索远程网站的目录 C# 可以像VBA那样开发office 应用吗?? 一个打包的问题 菜鸟三问:关于日期的一个简单问题
{
Graphics g= e.Graphics;
using (GraphicsPath grp=new GraphicsPath())
{
grp.AddEllipse(100,200,300,522);
g.DrawPath(Pens.Black,grp);
}
}
这是椭圆的画法,别的类似
只要把AddEllipse换成别的就行了
建议看msdn
using (GraphicsPath grp=new GraphicsPath())
{
grp.AddEllipse(100,200,300,522);
g.DrawPath(Pens.Black,grp);
}
在视图设计器选择panel,按F4,在事件里双击Paint事件。
但是窗体以改变就有不行了
this.Paint +=new PaintEventHandler(Form1_Paint);
Form1_Paint
{
Graphics g= this.panel1.CreateGraphics();
using (GraphicsPath grp=new GraphicsPath())
{
grp.AddEllipse(100,200,300,522);
g.DrawPath(Pens.Black,grp);
}
}
这个它是启动窗体就画 ~~~我想在我点击菜单的时候在画