<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBuffer/imageBuffer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Media",
      "CoreMedia"
    ],
    "preciseIdentifier" : "s:So17CMSampleBufferRefa9CoreMediaE05imageB0So08CVBufferC0aSgvp"
  },
  "title" : "imageBuffer"
}
-->

# imageBuffer

An image buffer that contains the media data.

```
var imageBuffer: CVImageBuffer? { get }
```

## Discussion

The value is <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if the sample buffer doesn’t contain a <doc://com.apple.documentation/documentation/CoreVideo/cvimagebuffer-q40>, if the sample contains a [CMBlockBuffer](/documentation/CoreMedia/cmblockbuffer-api), or if there’s an error.

---

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)