展开全部
上楼回答的好!!
graphics其实是GDI+
graphics其实是GDI+
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
//窗体上添加一个pictureBox,双击paint事件,内部代码如下
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
Bitmap bmp = new Bitmap(e.ClipRectangle.Width,e.ClipRectangle.Height);
Graphics g = Graphics.FromImage(bmp);
Pen penColor = new Pen(Color.Tomato,2);
g.DrawArc(penColor, e.ClipRectangle, 0, 360);
e.Graphics.DrawImage(bmp, new Point(0, 0));
bmp.Save("C:\\Temp.bmp");
}
private void pictureBox1_Paint(object sender, PaintEventArgs e)
{
Bitmap bmp = new Bitmap(e.ClipRectangle.Width,e.ClipRectangle.Height);
Graphics g = Graphics.FromImage(bmp);
Pen penColor = new Pen(Color.Tomato,2);
g.DrawArc(penColor, e.ClipRectangle, 0, 360);
e.Graphics.DrawImage(bmp, new Point(0, 0));
bmp.Save("C:\\Temp.bmp");
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询