render(_:to:bounds:colorSpace:)
Renders a region of an image into a pixel buffer.
Declaration
func render(_ image: CIImage, to buffer: CVPixelBuffer, bounds: CGRect, colorSpace: CGColorSpace?)Parameters
- image:
A Core Image image object.
- buffer:
The destination pixel buffer.
- bounds:
The rectangle in the destination pixel buffer to draw into.
- colorSpace:
The color space of the destination pixel buffer.