<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGContextAddQuadCurveToPoint",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGContextAddQuadCurveToPoint"
  },
  "title" : "CGContextAddQuadCurveToPoint"
}
-->

# CGContextAddQuadCurveToPoint

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)