Table of Contents

Method AddBeziers

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

AddBeziers(ReadOnlySpan<BezierSegment>)

Creates a sequence of cubic Bezier curves and adds them to the geometry sink.

void AddBeziers(ReadOnlySpan<BezierSegment> beziers)

Parameters

beziers ReadOnlySpan<BezierSegment>

A pointer to an array of Bezier segments that describes the Bezier curves to create. A curve is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by BeginFigure(Point2Float, FigureBegin)) to the end point of the first Bezier segment in the array. If the array contains additional Bezier segments, each subsequent Bezier segment uses the end point of the preceding Bezier segment as its start point.