<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/imageWithCVPixelBuffer:options:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(cm)imageWithCVPixelBuffer:options:"
  },
  "title" : "imageWithCVPixelBuffer:options:"
}
-->

# imageWithCVPixelBuffer:options:

Creates and returns an image object from the contents of  `CVPixelBuffer` object, using the specified options.

```
+ (CIImage *) imageWithCVPixelBuffer:(CVPixelBufferRef) pixelBuffer options:(NSDictionary<NSString *,id> *) options;
```

## Parameters

`pixelBuffer`

A  `CVPixelBuffer` object.

`options`

A dictionary specifying image options. (See `Image Dictionary Keys`.)

## Return Value

An image object initialized with the contents of the image buffer object and set up with the specified options.

---

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)