Type Method

imageWithIOSurface:

Creates and returns an image from the contents of an IOSurface.

Declaration

+ (CIImage *)imageWithIOSurface:(IOSurfaceRef)surface;

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

+ emptyImage

Creates and returns an empty image object.

+ imageWithColor:

Creates and returns an image of infinite extent whose entire content is the specified color.

+ imageWithBitmapData:bytesPerRow:size:format:colorSpace:

Creates and returns an image object from bitmap data.

+ imageWithCGImage:

Creates and returns an image object from a Quartz 2D image.

+ imageWithCGImage:options:

Creates and returns an image object from a Quartz 2D image using the specified options.

+ imageWithCGLayer:

Creates and returns an image object from the contents supplied by a CGLayer object.

Deprecated
+ imageWithCGLayer:options:

Creates and returns an image object from the contents supplied by a CGLayer object, using the specified options.

Deprecated
+ imageWithContentsOfURL:

Creates and returns an image object from the contents of a file.

+ imageWithContentsOfURL:options:

Creates and returns an image object from the contents of a file, using the specified options.

+ imageWithCVImageBuffer:

Creates and returns an image object from the contents of CVImageBuffer object.

+ imageWithCVImageBuffer:options:

Creates and returns an image object from the contents of CVImageBuffer object, using the specified options.

+ imageWithCVPixelBuffer:

Creates and returns an image object from the contents of CVPixelBuffer object.

+ imageWithCVPixelBuffer:options:

Creates and returns an image object from the contents of CVPixelBuffer object, using the specified options.

+ imageWithData:

Creates and returns an image object initialized with the supplied image data.

+ imageWithData:options:

Creates and returns an image object initialized with the supplied image data, using the specified options.

+ imageWithImageProvider:size::format:colorSpace:options:

Creates and returns an image object initialized with data provided by an image provider.

+ imageWithTexture:size:flipped:colorSpace:

Creates and returns an image object initialized with data supplied by an OpenGL texture.

Deprecated
+ imageWithTexture:size:flipped:options:

Creates and returns an image object initialized with data supplied by an OpenGL texture.

Deprecated
+ imageWithMTLTexture:options:

Creates and returns an image object with data supplied by a Metal texture.

+ imageWithIOSurface:options:

Creates, using the specified options, and returns an image from the contents of an IOSurface.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software