如:以下代码 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();
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();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货