protected static void RenderLine([NotNull] IDrawingContext drawingContext, ref WindowsRect clippingRect, IList <WindowsPoint> points, Color color) { // FIXME: calculate (optimistic) clipped line beforehand so that points that are eventually outside of the clipped area are not given to the rendering context. // FIXME: note that in the end the curve is still clipped by the canvas Clip property. drawingContext.DrawPolyline(points, color); }
public void Draw(IDrawingContext context) { context.DrawPolyline(_startPoint, _points); }