Instance Method

createCGImage:fromRect:

Creates a Quartz 2D image from a region of a Core Image image object.

Declaration

- (CGImageRef)createCGImage:(CIImage *)image fromRect:(CGRect)fromRect;

Parameters

im

A Core Image image object.

r

The region of the image to render.

Return Value

A Quartz 2D image. You are responsible for releasing the returned image when you no longer need it.

Discussion

Renders a region of an image into a temporary buffer using the context, then creates and returns a Quartz 2D image with the results.

See Also

Rendering Images

- createCGImage:fromRect:format:colorSpace:

Creates a Quartz 2D image from a region of a Core Image image object.

- createCGImage:fromRect:format:colorSpace:deferred:

Creates a Quartz 2D image from a region of a Core Image image object with deferred rendering.

- createCGLayerWithSize:info:

Creates a CGLayer object from the provided parameters.

Deprecated
- render:toCVPixelBuffer:

Renders an image into a pixel buffer.

- render:toCVPixelBuffer:bounds:colorSpace:

Renders a region of an image into a pixel buffer.

- render:toIOSurface:bounds:colorSpace:

Renders a region of an image into an IOSurface object.

- render:toMTLTexture:commandBuffer:bounds:colorSpace:

Renders a region of an image to a Metal texture.