public Path AddBezier(
PointF p1,
PointF p2,
PointF p3,
PointF p4
)Public Function AddBezier (
p1 As PointF,
p2 As PointF,
p3 As PointF,
p4 As PointF
) As Pathpublic:
Path^ AddBezier(
PointF p1,
PointF p2,
PointF p3,
PointF p4
)member AddBezier :
p1 : PointF *
p2 : PointF *
p3 : PointF *
p4 : PointF -> Path 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.
This method adds a cubic Bézier curve defined by four points: the starting point, two control points, and the end point. To add a quadratic Bézier curve, you can use the AddQuadraticCurve method. Similarly, to add a conic curve, you can use the AddConicCurve method. In fact, both will transform the curve into a cubic Bézier curve internally.
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.