Instance Method

cgImage(options:)

Returns a full resolution CGImage of the representation.

Declaration

func cgImage(options: [AnyHashable : Any]! = [:]) -> Unmanaged<CGImage>!

Parameters

options

A dictionary of options as described for CGImageSourceCreateWithData(_:_:) or CGImageSourceCreateWithURL(_:_:).

Return Value

A full resolution CGImage of the representation.

Discussion

This method provides a convenient way to obtain a CGImage representation of an asset. This method returns the biggest, best representation available.

See Also

Getting Image Representations

func fullResolutionImage() -> Unmanaged<CGImage>!

Returns a CGImage representation of the asset.

Deprecated
func fullScreenImage() -> Unmanaged<CGImage>!

Returns a CGImage of the representation that is appropriate for displaying full screen.

Deprecated