110,571
社区成员
发帖
与我相关
我的任务
分享
//如果你非要用picturebox的话,就这样用。
Bitmap b = new Bitmap(pictureBox1.Width, pictureBox1.Height);
pictureBox1.Image = b;
//下面两种都可以。
Graphics g = Graphics.FromImage(pictureBox1.Image);
Graphics g = Graphics.FromImage(b);