Contents

init(cgImage:flags:)

Creates a new buffer with the contents of a Core Graphics image.

Declaration

init(cgImage: CGImage, flags options: vImage.Options = .noFlags) throws

Parameters

  • cgImage:

    The source image.

  • options:

    The options to use when performing the operation.

Discussion

This function initializes a vImage buffer using the format of the Core Graphics image.

See Also

Consuming and producing Core Graphics images