//怎样去除 图形路径形成区域的重叠部分??及得到区域的边框,中心点??;
yxred 2007-04-22 10:44:20 如:以下代码
GraphicsPath gPath = new GraphicsPath();
gPath.AddRectangle(new Rectangle(5, 5, 200, 300));
gPath.AddEllipse(new Rectangle(100, 100, 300, 300));
Graphics gp = this.CreateGraphics();
gp.DrawPath(Pens.Blue, gPath);
//gp.FillPath(Brushes.Red, gPath);//在一部分没有填充中
Region myRegion = new Region(gPath);
//怎样得到myRegion的中心点坐标??
//怎样行到myRegion的边框点链表
gp.FillRegion(Brushes.Red, myRegion);
gp.Dispose();