Contents

init(ioSurface:options:)

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

Declaration

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.

See Also

Creating an Image