Contents

init(cgImage:)

Initializes and returns the image object with the specified Quartz image reference.

Declaration

init(cgImage: CGImage)

Parameters

  • cgImage:

    A Quartz image reference.

Return Value

An initialized UIImage object, or nil if the method could not initialize the image from the specified data.

See Also

Creating and initializing image objects