<!--
{
  "availability" : [
    "macOS: 10.9.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/init(ioSurface:plane:format:options:)-93isn",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)initWithIOSurface:plane:format:options:"
  },
  "title" : "init(ioSurface:plane:format:options:)"
}
-->

# init(ioSurface:plane:format:options:)

Initializes, using the specified format and options, an image with the contents of a specific data plane in an IOSurface.

```
init(ioSurface surface: IOSurfaceRef, plane: Int, format: CIFormat, options: [CIImageOption : Any]? = nil)
```

## Parameters

`surface`

An IOSurface object.

`plane`

The index of the data plane in the IOSurface object containing bitmap data for initializing the image.

`format`

A pixel format constant. See `Pixel Formats`.

`options`

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

## Return Value

An image object initialized with the data from the IOSurface.

---

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)