init(cgLayer:)
Initializes an image object from the contents supplied by a CGLayer object.
Declaration
init(cgLayer layer: CGLayer)Parameters
- layer:
A CGLayer object. For more information see TP30001066 and Cglayer.
Return Value
The initialized image object.