Language

CIContext_CIRenderDestination.EstimateRender Method

Definition

Estimates the resources required to render an image without executing the render.

[Foundation.Export("estimateRender:fromRect:toDestination:atPoint:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static CoreImage.CIRenderTask? EstimateRender(this CoreImage.CIContext This, CoreImage.CIImage image, CoreGraphics.CGRect fromRect, CoreImage.CIRenderDestination destination, CoreGraphics.CGPoint atPoint, out Foundation.NSError? error);
[<Foundation.Export("estimateRender:fromRect:toDestination:atPoint:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member EstimateRender : CoreImage.CIContext * CoreImage.CIImage * CoreGraphics.CGRect * CoreImage.CIRenderDestination * CoreGraphics.CGPoint * NSError -> CoreImage.CIRenderTask

Parameters

This
CIContext

The instance on which this method operates.

image
CIImage

The image to estimate rendering for.

fromRect
CGRect

The region of the image to render.

destination
CIRenderDestination

The render destination.

atPoint
CGPoint

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

error
NSError

The error if the render could not be estimated.

Returns

A render task containing the estimated statistics, or null if estimation failed.

Attributes

Applies to