Contents

CGPathAddQuadCurveToPoint

Appends a quadratic Bézier curve to a mutable graphics path.

Declaration

extern void CGPathAddQuadCurveToPoint(CGMutablePathRef path, const CGAffineTransform *m, CGFloat cpx, CGFloat cpy, CGFloat x, CGFloat y);

Parameters

  • path:

    The mutable path to change. The path must not be empty.

  • m:

    A pointer to an affine transformation matrix, or NULL if no transformation is needed. If specified, Core Graphics applies the transformation to the curve before adding it to the path.

  • cpx:

    The x-coordinate of the control point.

  • cpy:

    The y-coordinate of the control point.

  • x:

    The x-coordinate of the end point of the curve.

  • y:

    The y-coordinate of the end point of the curve.

Discussion

Before returning, this function updates the current point to the specified location (x, y).

See Also

Constructing a Graphics Path