CGContextAddQuadCurveToPoint
Appends a quadratic Bézier curve from the current point, using a control point and an end point you specify.
Declaration
extern void CGContextAddQuadCurveToPoint(CGContextRef c, CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y);Parameters
- c:
A graphics context whose current path is not empty.
- cpx:
The x-coordinate of the user space for the control point of the curve.
- cpy:
The y-coordinate of the user space for the control point of the curve.
- x:
The x-coordinate of the user space at which to end the curve.
- y:
The y-coordinate of the user space at which to end the curve.
Discussion
This function appends a quadratic curve to the current subpath. After adding the segment, the current point is set to the end point of the curve.