private static SKPath ToSKPath(this PathFigure figure) { SKPath sk = new SKPath(); sk.MoveTo(figure.StartPoint.ToSKPoint()); foreach (var segment in figure.Segments) { sk.AddSegment(segment); } if (figure.IsClosed) { sk.Close(); } return(sk); }