Creates a Core Graphics bitmap image or image mask using the provided pixel buffer.
- iOS 9.0+
- macOS 10.11+
- tvOS 10.2+
No options are currently supported. Pass
NULLfor this argument.
Pointer to an address to receive the newly created
This routine creates a
CGImage representation of the image data contained in the provided
CVPixel. The source
CVPixel may be retained for the lifetime of the
CGImage. Changes to the
CVPixel after making this call (other than releasing it) will have undefined results.
CVPixel pixel formats support conversion into a
CGImage-compatible pixel format.