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

# CGContextDrawLayerAtPoint

Draws the contents of a CGLayer object at the specified point.

```
extern void CGContextDrawLayerAtPoint(CGContextRef context, CGPoint point, CGLayerRef layer);
```

## Parameters

`context`

The graphics context associated with the layer.

`point`

The location, in current user space coordinates, to use as the origin for the drawing.

`layer`

The layer whose contents you want to draw.

## Discussion

Calling the function `CGContextDrawLayerAtPoint` is equivalent to calling the function `CGContextDrawLayerInRect` with a rectangle that has its origin at `point` and its size equal to the size of the layer.

---

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)