---
title: pixelBuffer
framework: coreimage
role: symbol
role_heading: Instance Property
path: coreimage/ciimage/pixelbuffer
---

# pixelBuffer

The CoreVideo pixel buffer this image was created from, if applicable.

## Declaration

```swift
var pixelBuffer: CVPixelBuffer? { get }
```

## Discussion

Discussion If this image was create using the init(cvPixelBuffer:) initializer, this property’s value is the CVPixelBuffer object that provides the image’s underlying image data. Do not modify the contents of this pixel buffer; doing so will cause undefined rendering results. Otherwise, this property’s value is nil—in this case you can obtain a pixel buffer by rendering the image with the CIContext render(_:to:) method.

## See Also

### Accessing Original Image Content

- [cgImage](coreimage/ciimage/cgimage.md)
- [depthData](coreimage/ciimage/depthdata.md)
- [portraitEffectsMatte](coreimage/ciimage/portraiteffectsmatte.md)
- [semanticSegmentationMatte](coreimage/ciimage/semanticsegmentationmatte.md)
