摘要:
代码很简单,写成控件,定义一个角度的属性,然后改动属性重绘。 public UserControl1() { InitializeComponent(); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.ResizeRedraw, true); ... 阅读全文
posted @ 2013-10-31 19:18
SmilelyCoding
阅读(277)
评论(0)
推荐(0)
摘要:
GDI+ Graphics Device Interface 图形设备接口GDI+提供以下三类服务:1.二维矢量图形2.图像处理。3.文字显示。获取Graphics的方法:1.在Paint事件中 Private void form1_Paint(object sender,PaintEventArgs);2.重绘事件:protected override void Onpaint(PaintEventArgs e);3.调用某控件或窗体的CreatGraphics方法: Graphics G=this.CreatGraphics();调用Graphic类的FromImage方法Image im 阅读全文
posted @ 2013-10-31 09:09
SmilelyCoding
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号