日期:2014-05-18 浏览次数:20921 次
public partial class Form2 : Form { public Form2() { InitializeComponent(); using (GraphicsPath path = new GraphicsPath()) { int r = 32;//圆角半径 path.AddArc(0, 0, r, r, 180, 90); path.AddArc(this.Width - r - 1, 0, r, r, 270, 90); path.AddArc(this.Width - r - 1, this.Height - r - 1, r, r, 0, 90); path.AddArc(0, this.Height - r - 1, r, r, 90, 90); this.Region = new Region(path); } } }
------解决方案--------------------
但是如果有渐变淡出效果ls的都不行吧
看这个吧
A lovely goldfish desktop pet (using alpha-PNG and GDI+)