用GDI+画个矩形已经添加了picturebox了,编译没错误,但是没有图形,谁知道啊?
Bitmapp=newBitmap(200,200);Graphicsg=Graphics.FromImage(p);g.Clear(Color.White);Brush...
Bitmap p = new Bitmap(200,200);
Graphics g =Graphics.FromImage(p);
g.Clear(Color.White);
Brush Rbrush = new SolidBrush(Color.Red);
Pen Rpen = new Pen(Rbrush,2);
g.DrawRectangle(Rpen, 20, 20, 100,100); 展开
Graphics g =Graphics.FromImage(p);
g.Clear(Color.White);
Brush Rbrush = new SolidBrush(Color.Red);
Pen Rpen = new Pen(Rbrush,2);
g.DrawRectangle(Rpen, 20, 20, 100,100); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询