<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContext/estimateRender(_:from:to:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIContext(im)estimateRender:fromRect:toDestination:atPoint:error:"
  },
  "title" : "estimateRender(_:from:to:at:)"
}
-->

# estimateRender(_:from:to:at:)

Returns a task with estimated resource statistics for a render, without executing the render.

```
func estimateRender(_ image: CIImage, from fromRect: CGRect, to destination: CIRenderDestination, at atPoint: CGPoint) throws -> CIRenderTask
```

## Parameters

`image`

The [`CIImage`](/documentation/CoreImage/CIImage) to estimate the render for.

`fromRect`

The region of [`CIImage`](/documentation/CoreImage/CIImage) to render.

`destination`

The [`CIRenderDestination`](/documentation/CoreImage/CIRenderDestination) to estimate the render to.

`atPoint`

The point in the destination where the origin of `fromRect` is placed.

## Return Value


A [`CIRenderTask`](/documentation/CoreImage/CIRenderTask) you can query for estimated statistics, or `nil` if `fromRect`
doesn’t intersect `image.extent` or if estimation fails.

## Discussion

Call this method to analyze the cost of a render before you execute it. Query the
returned task’s `plannedPixelsProcessed`, `plannedPixelsOverdrawn`, `plannedPassCount`,
and `plannedPeakMemory` properties to get the estimated statistics.

The method renders as if the image is cropped to `fromRect` and places the origin of
`fromRect` at `atPoint` in the destination.

---

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)