调用如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
将下面的代码加到form窗体的paint事件:
Graphics g = this.CreateGraphics();
GraphicsPath gr = new GraphicsPath();
gr.AddEllipse(100, 150, 400, 400);
Region region = new Region(gr );
this.Region = region;
不要听那些低手的屁话
温馨提示:答案为网友推荐,仅供参考