Initializes an image object with the specified UIKit image object, using the specified options.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
init?(image: UIImage, options: [CIImage Option : Any]? = nil)
Parameters
image
An image containing the source data.
options
A dictionary that contains options for creating an image object. You can supply such options as a pixel format and a color space. See Image Dictionary Keys.
Return Value
The initialized image object, or nil
if the object could not be initialized.