Initializer

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

init?(contentsOfFile: String)

Initializes and returns the image object with the contents of the specified file.

init?(data: Data)

Initializes and returns the image object with the specified data.

init?(data: Data, scale: CGFloat)

Initializes and returns the image object with the specified data and scale factor.

init(cgImage: CGImage, scale: CGFloat, orientation: UIImage.Orientation)

Initializes and returns an image object with the specified scale and orientation factors

init(ciImage: CIImage)

Initializes and returns an image object with the specified Core Image object.

init(ciImage: CIImage, scale: CGFloat, orientation: UIImage.Orientation)

Initializes and returns an image object with the specified Core Image object and properties.