Contents

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.

Declaration

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.

See Also

Deprecated