---
title: CGContextAddQuadCurveToPoint
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgcontextaddquadcurvetopoint
---

# CGContextAddQuadCurveToPoint

Appends a quadratic Bézier curve from the current point, using a control point and an end point you specify.

## Declaration

```occ
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

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.

## See Also

### Constructing a Current Graphics Path

- [beginPath()](coregraphics/cgcontext/beginpath().md)
- [CGContextMoveToPoint](coregraphics/cgcontextmovetopoint.md)
- [CGContextAddLineToPoint](coregraphics/cgcontextaddlinetopoint.md)
- [CGContextAddLines](coregraphics/cgcontextaddlines.md)
- [addRect(_:)](coregraphics/cgcontext/addrect(_:).md)
- [CGContextAddRects](coregraphics/cgcontextaddrects.md)
- [addEllipse(in:)](coregraphics/cgcontext/addellipse(in:).md)
- [CGContextAddArc](coregraphics/cgcontextaddarc.md)
- [CGContextAddArcToPoint](coregraphics/cgcontextaddarctopoint.md)
- [CGContextAddCurveToPoint](coregraphics/cgcontextaddcurvetopoint.md)
- [addPath(_:)](coregraphics/cgcontext/addpath(_:).md)
- [closePath()](coregraphics/cgcontext/closepath().md)
- [path](coregraphics/cgcontext/path.md)
- [replacePathWithStrokedPath()](coregraphics/cgcontext/replacepathwithstrokedpath().md)
