<!--
{
  "availability" : [
    "iOS: 5.0.0 - 6.0.0",
    "iPadOS: 5.0.0 - 6.0.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContext/draw(_:at:from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIContext(im)drawImage:atPoint:fromRect:"
  },
  "title" : "draw(_:at:from:)"
}
-->

# draw(_:at:from:)

Renders a region of an image to a point in the context destination.

```
func draw(_ image: CIImage, at atPoint: CGPoint, from fromRect: CGRect)
```

## Parameters

`image`

A Core Image image object.

`atPoint`

The point in the context destination to draw to.

`fromRect`

The region of the image to draw.

## Discussion

This method because it is ambiguous as to the units of the dimensions and won’t work as expected in a high-resolution environment which is why you should use `drawImage:inRect:fromRect:` instead.

On iOS platforms, this method draws the image onto a render buffer for the OpenGL ES context. Use this method only if the [`CIContext`](/documentation/CoreImage/CIContext) object is created with `contextWithEAGLContext:`, and hence, you are rendering to a CAEAGLLayer.

---

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)