Table of Contents

Method DrawBeziers

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawBeziers(SKCanvas, SKPaint, ReadOnlySpan<PointD>)

Draws a series of connected cubic Bezier curves on the specified canvas.

public static void DrawBeziers(this SKCanvas canvas, SKPaint paint, ReadOnlySpan<PointD> points)

Parameters

canvas SKCanvas

The SKCanvas on which the Bezier curves will be drawn. Cannot be null.

paint SKPaint

The SKPaint used to define the style, color, and other properties of the drawn curves. Cannot be null.

points ReadOnlySpan<PointD>

A read-only span of PointD representing the control points for the Bezier curves. The first point specifies the starting point, and every subsequent group of three points defines a cubic Bezier curve. The total number of points must be at least 4 and a multiple of 3 plus 1 (e.g., 4, 7, 10, etc.).

Remarks

This method creates a path consisting of one or more cubic Bezier curves, starting at the first point in points and using each subsequent group of three points to define the control points and endpoint of each curve. The resulting path is drawn on the specified canvas using the provided paint.