init(cgLayer:options:)
Initializes an image object from the contents supplied by a CGLayer object, using the specified options.
Declaration
init(cgLayer layer: CGLayer, options: [CIImageOption : Any]? = nil)Parameters
- layer:
A CGLayer object. For more information see TP30001066 and Cglayer.
- options:
A dictionary specifying image options. (See
Image Dictionary Keys.)
Return Value
The initialized image object.