Instance Method


Renders an image to a destination so that point (0, 0) of the image maps to point (0, 0) of the destination.


func startTask(toRender image: CIImage, to destination: CIRenderDestination) throws -> CIRenderTask



CIImage to prepare to render.


The CIRenderDestination to which to render.


Pointer to an error should the render task creation fail.

Return Value

The asynchronous CIRenderTask to render the image to the specified destination.

See Also

Customizing Render Destination

func prepareRender(CIImage, from: CGRect, to: CIRenderDestination, at: CGPoint)

An optional call to warm up a CIContext so that subsequent calls to render with the same arguments run more efficiently.

func startTask(toClear: CIRenderDestination) -> CIRenderTask

Fills the entire destination with black or clear depending on its alphaMode.