/// <summary>
 /// Draws the provided points as an open Bezier path at the provided thickness with the supplied brush
 /// </summary>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options.</param>
 /// <param name="color">The color.</param>
 /// <param name="thickness">The thickness.</param>
 /// <param name="points">The points.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext DrawBeziers(
     this IImageProcessingContext source,
     GraphicsOptions options,
     Color color,
     float thickness,
     params PointF[] points) =>
 source.DrawBeziers(options, new SolidBrush(color), thickness, points);
Esempio n. 2
0
 /// <summary>
 /// Draws the provided Points as an open Bezier path at the provided thickness with the supplied brush
 /// </summary>
 /// <typeparam name="TPixel">The type of the color.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="color">The color.</param>
 /// <param name="thickness">The thickness.</param>
 /// <param name="points">The points.</param>
 /// <param name="options">The options.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> DrawBeziers <TPixel>(this IImageProcessingContext <TPixel> source, TPixel color, float thickness, PointF[] points, GraphicsOptions options)
     where TPixel : struct, IPixel <TPixel>
 {
     return(source.DrawBeziers(new SolidBrush <TPixel>(color), thickness, points, options));
 }
 /// <summary>
 /// Draws the provided points as an open Bezier path at the provided thickness with the supplied brush
 /// </summary>
 /// <typeparam name="TPixel">The type of the color.</typeparam>
 /// <param name="source">The image this method extends.</param>
 /// <param name="options">The options.</param>
 /// <param name="color">The color.</param>
 /// <param name="thickness">The thickness.</param>
 /// <param name="points">The points.</param>
 /// <returns>The <see cref="Image{TPixel}"/>.</returns>
 public static IImageProcessingContext <TPixel> DrawBeziers <TPixel>(this IImageProcessingContext <TPixel> source, GraphicsOptions options, TPixel color, float thickness, params PointF[] points)
     where TPixel : struct, IPixel <TPixel>
 => source.DrawBeziers(options, new SolidBrush <TPixel>(color), thickness, points);