public static SciterGraphics DrawPolyline(this SciterGraphics graphics, Func <IEnumerable <PolylinePoint> > pointsFunc) { if (pointsFunc == null) { throw new ArgumentNullException(nameof(pointsFunc), @"Cannot be null."); } graphics?.DrawPolyline(points: pointsFunc.Invoke()); return(graphics); }
public static SciterGraphics DrawPolyline(this SciterGraphics graphics, PolylinePoint[] points) { return(graphics?.DrawPolyline(points: points?.AsEnumerable())); }