---
title: "render(_:to:bounds:colorSpace:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/cicontext/render(_:to:bounds:colorspace:)-2k8l2"
---

# render(_:to:bounds:colorSpace:)

Renders a region of an image into a pixel buffer.

## Declaration

```swift
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.

## See Also

### Rendering Images

- [createCGImage(_:from:)](coreimage/cicontext/createcgimage(_:from:).md)
- [createCGImage(_:from:format:colorSpace:)](coreimage/cicontext/createcgimage(_:from:format:colorspace:).md)
- [createCGImage(_:from:format:colorSpace:deferred:)](coreimage/cicontext/createcgimage(_:from:format:colorspace:deferred:).md)
- [render(_:toBitmap:rowBytes:bounds:format:colorSpace:)](coreimage/cicontext/render(_:tobitmap:rowbytes:bounds:format:colorspace:).md)
- [render(_:to:)](coreimage/cicontext/render(_:to:).md)
- [render(_:to:bounds:colorSpace:)](coreimage/cicontext/render(_:to:bounds:colorspace:)-54b9l.md)
- [render(_:to:commandBuffer:bounds:colorSpace:)](coreimage/cicontext/render(_:to:commandbuffer:bounds:colorspace:).md)
