Contents

init(ioSurface:)

Initializes an image with the contents of an IOSurface.

Declaration

init(ioSurface surface: IOSurfaceRef)

Parameters

  • surface:

    An IOSurface object.

Return Value

An image object initialized with the data from the IOSurface object.

Discussion

An IOSurface object is a framebuffer object that is suitable for sharing across process boundaries. You can use it to allow your app to move complex image decompression and drawing logic into a separate process for the purpose of increasing security.

See Also

Creating an Image