在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
private void FrmMain_Paint(object sender, PaintEventArgs e) { GraphicsPath oPath = new GraphicsPath(); int x = 0; int y = 0; int w = Width; int h = Height; int a = 8; Graphics g = CreateGraphics(); oPath.AddArc(x, y, a, a, 180, 90); //边框格式 oPath.AddArc(w - a, y, a, a, 270, 90); oPath.AddArc(w - a / 2, h - a / 2, a / 2, a / 2, 0, 90); oPath.AddArc(x, h - a, a, a, 90, 90); oPath.CloseAllFigures(); Region = new Region(oPath); } |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论