public Path AddBezier(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4
)Public Function AddBezier (
x1 As Single,
y1 As Single,
x2 As Single,
y2 As Single,
x3 As Single,
y3 As Single,
x4 As Single,
y4 As Single
) As Pathpublic:
Path^ AddBezier(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4
)member AddBezier :
x1 : float32 *
y1 : float32 *
x2 : float32 *
y2 : float32 *
x3 : float32 *
y3 : float32 *
x4 : float32 *
y4 : float32 -> 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.