---
title: CGContextMoveToPoint
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgcontextmovetopoint
---

# CGContextMoveToPoint

Begins a new subpath at the point you specify.

## Declaration

```occ
extern void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y);
```

## Parameters

- `c`: A graphics context.
- `x`: The x-value, in user space coordinates, for the point.
- `y`: The y-value, in user space coordinates, for the point.

## Discussion

Discussion This point you specify becomes the start point of a new subpath. The current point is set to this start point.

## See Also

### Constructing a Current Graphics Path

- [beginPath()](coregraphics/cgcontext/beginpath().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)
- [CGContextAddQuadCurveToPoint](coregraphics/cgcontextaddquadcurvetopoint.md)
- [addPath(_:)](coregraphics/cgcontext/addpath(_:).md)
- [closePath()](coregraphics/cgcontext/closepath().md)
- [path](coregraphics/cgcontext/path.md)
- [replacePathWithStrokedPath()](coregraphics/cgcontext/replacepathwithstrokedpath().md)
