GDI(Graphics Device Interface Plus)图形图像处理基础学习
一、创建Graphics对象的方式
(1)调用CreateGraphics方法创建
可以在Form窗体和pictureBox控件上绘制图形;
创建与窗体或pictureBox控件相关联的Graphics对象;
示例:Graphics mygraphics=this.CreateGraphics();
Graphics mypicture=pictureBox1.CreateGraphics();
二、从Bitmap(位图)对象创建Graphics对象
Bitmap bmp=new Bitmap