Contents

init(cgImage:)

Creates an Artworkrepresentation from a CGImage instance.

Declaration

init(cgImage: CGImage) throws

Parameters

  • cgImage:

    The CGImage that represents the artwork.

Discussion

If the provided image uses an unsupported format, this initializer returns nil.