public Path AddQuadraticCurves(
params PointF[] points
)Public Function AddQuadraticCurves (
ParamArray points As PointF()
) As Pathpublic:
Path^ AddQuadraticCurves(
... array<PointF>^ points
)member AddQuadraticCurves :
points : PointF[] -> Path points must have 0 or an odd number of items.
When points has at least three items, the first three points define the first quadratic curve. Each additional two points define a new quadratic curve, where the last point of the previous curve is the starting point of the next curve.
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 quadratic Bézier curves. A quadratic Bézier curve is defined by three points: the starting point, the control point, and the end point. To add cubic Bézier curves, you can use the AddBeziers method. In fact, this method transforms the quadratic curves into cubic Bézier curves internally.
The coordinates of the specified points 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.
| ArgumentNullException | points is . |
| ArgumentException | The number of points is not zero, or an odd number. |