VTUtilities.ToCGImage(CVPixelBuffer, CGImage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Core Graphics image from a pixel buffer.
public static VideoToolbox.VTStatus ToCGImage(this CoreVideo.CVPixelBuffer pixelBuffer, out CoreGraphics.CGImage? image);
static member ToCGImage : CoreVideo.CVPixelBuffer * CGImage -> VideoToolbox.VTStatus
Parameters
- pixelBuffer
- CVPixelBuffer
The pixel buffer to convert.
- image
- CGImage
On success, the created image; otherwise, null.
Returns
A status code that indicates whether the conversion succeeded.
Exceptions
pixelBuffer is null.