quadraticCurveTo method
[This documentation is preliminary and is subject to change.]
Adds a point to the current subpath by using the specified control points that represent a quadratic Bézier curve.
![]() ![]() |
Syntax
HRESULT retVal = object.quadraticCurveTo(cp1x, cp1y, x, y);
Standards information
- HTML Canvas 2D Context, Section 9
Parameters
cp1x [in]
Type: floatThe x-coordinate of the Bézier control point.
cp1y [in]
Type: floatThe y-coordinate of the Bézier control point.
x [in]
Type: floatThe x-coordinate of the point to add to the current path.
y [in]
Type: floatThe y-coordinate of the point to add to the current path.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
A quadratic Bézier curve requires two points. The first point is a control point that is used in the quadratic Bézier calculation and the second point is the ending point for the curve. The starting point for the curve is the last point in the existing current subpath. If a path does not exist, use the beginPath and moveTo methods to set a starting point.
Build date: 1/23/2012
.png)
.png)