/// <summary> /// Draws the provided points as an open linear path with the supplied pen. /// </summary> /// <param name="source">The image processing context.</param> /// <param name="options">The options.</param> /// <param name="pen">The pen.</param> /// <param name="points">The points.</param> /// <returns>The <see cref="IImageProcessingContext"/> to allow chaining of operations.</returns> public static IImageProcessingContext DrawLines( this IImageProcessingContext source, DrawingOptions options, IPen pen, params PointF[] points) => source.Draw(options, pen, new Path(new LinearLineSegment(points)));