Language

VTUtilities.ToCGImage(CVPixelBuffer, CGImage) Method

Definition

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.

Applies to