//要截图的图片
Image img = Image.FromFile("D:\\soure.jpg"); //截图画板
Bitmap bm = new Bitmap(, );
Graphics g = Graphics.FromImage(bm); //创建截图路径(类似Ps里的路径)
GraphicsPath gpath = new GraphicsPath();
gpath.AddEllipse(, , , );//圆形 //设置画板的截图路径
g.SetClip(gpath); //对图片进行截图
g.DrawImage(img, , ); //保存截好的图
bm.Save("D:\\new.png", ImageFormat.Png);
04-19 18:50