Contents

createCGImage(format:flags:)

Creates a Core Graphics image from the vImage buffer.

Declaration

func createCGImage(format: vImage_CGImageFormat, flags options: vImage.Options = .noFlags) throws -> CGImage

Parameters

  • format:

    The desired format.

  • options:

    The options to use when performing the operation.

Mentioned in

Return Value

A Core Graphics image that represents the contents of the vImage buffer.

See Also

Consuming and producing Core Graphics images