<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/pixelBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(py)pixelBuffer"
  },
  "title" : "pixelBuffer"
}
-->

# pixelBuffer

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

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

## Discussion

If this image was create using the [`init(cvPixelBuffer:)`](/documentation/CoreImage/CIImage/init(cvPixelBuffer:)-3wng7) initializer, this property’s value is the <doc://com.apple.documentation/documentation/CoreVideo/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`](/documentation/CoreImage/CIContext) [`render(_:to:)`](/documentation/CoreImage/CIContext/render(_:to:)) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)