答案 0 :(得分:0)
现在我找到了解决方案,首先我需要扩展我的矩形区域然后用圆圈相交。
所以代码是:
GraphicsPath gr = new GraphicsPath();
gr.AddLines(pointsArray);
Region reg = new Region(gr);
GraphicsPath gr2 = new GraphicsPath();
gr2.AddEllipse(circleCenterX, circleCenterY, circleW, circleH);
reg.Intersect(gr2);
e.Graphics.FillRegion(brush, reg); // e is PaintEventArgs