init(cvImageBuffer:)
Initializes an image object from the contents of a Core Video image buffer.
Declaration
init(cvImageBuffer imageBuffer: CVImageBuffer)Parameters
- imageBuffer:
A
CVImageBufferobject in a supported pixel format constant. For more information, see Corevideo.
Return Value
The initialized image object.
Discussion
The imageBuffer parameter must be in one of the following formats:
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:)