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
empty()init(image:)init(image:options:)init(contentsOf:)init(contentsOf:options:)init(cgImage:)init(cgImage:options:)init(cgImageSource:index:options:)init(data:)init(data:options:)init(bitmapData:bytesPerRow:size:format:colorSpace:)init(bitmapImageRep:)init(imageProvider:size:_:format:colorSpace:options:)init(depthData:)init(depthData:options:)