init(cgImage:flags:)
Creates a new buffer with the contents of a Core Graphics image.
Declaration
init(cgImage: CGImage, flags options: vImage.Options = .noFlags) throwsParameters
- 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.