我已经将两个弧绘制为如下路径
Path path = new Path();
path.ArcTo(rc, (float)startArc, (float)(angle1 - startArc));
path.ArcTo(innerrc, (float)(angle - startArc), (float)startArc);
canvas.DrawPath(path, paint);
现在我需要填补这两个弧线。
对此有何想法? !
答案 0 :(得分:0)
终于搞定了,这对我来说很好用!
Path path = new Path();
paint.SetStyle(Paint.Style.Fill);
path.MoveTo((float)xnew, (float)ynew);
path.ArcTo(rc, (float)startArc, (float)(angle1 - startArc));
path.LineTo((float)xnew1, (float)ynew1);
path.ArcTo(innerrc, (float)(angle - startArc), (float)startArc);
path.LineTo((float)xnew, (float)ynew);
canvas.DrawPath(path, paint);