PathAddBezier(PointF, PointF, PointF, PointF) Method

Adds a Bézier curve to this Path.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public Path AddBezier(
	PointF p1,
	PointF p2,
	PointF p3,
	PointF p4
)

Parameters

p1  PointF
The starting point of the Bézier curve.
p2  PointF
The first control point of the Bézier curve.
p3  PointF
The second control point of the Bézier curve.
p4  PointF
The end point of the Bézier curve.

Return Value

Path
This Path instance.

Remarks

If the current figure is not empty or closed, the first point of the added curve will be connected to the last point of the figure.

The parameters are not validated here but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.

See Also