图片框圆角
/// <summary>
/// 图片框圆角
/// </summary>
/// <param name="o"></param>
public static void PicRounded(object o)
{
System.Windows.Forms.PictureBox p = o as System.Windows.Forms.PictureBox;
System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath();
gp.AddEllipse(p.ClientRectangle);
System.Drawing.Region region = new System.Drawing.Region(gp);
p.Region = region;
gp.Dispose();
region.Dispose();
}
参考的大佬的代码,找不到是哪个了,若有大佬发现及时联系我修改