代码:
GraphicsPath graphicsPath = new GraphicsPath();
graphicsPath.AddEllipse(15, 15, 150, 150);
label1.Region = new Region(graphicsPath);
label1.BackColor = Color.Red;
效果图:
代码:
GraphicsPath graphicsPath = new GraphicsPath();
graphicsPath.AddEllipse(15, 15, 150, 150);
label1.Region = new Region(graphicsPath);
label1.BackColor = Color.Red;
效果图: