<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/init(ioSurface:options:)-48cta",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)initWithIOSurface:options:"
  },
  "title" : "init(ioSurface:options:)"
}
-->

# init(ioSurface:options:)

Initializes, using the specified options, an image with the contents of an IOSurface.

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

## Parameters

`surface`

An IOSurface object.

`options`

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

## Return Value

An image object initialized with the data from the IOSurface.

## Discussion

---

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)