Contents

fullResolutionImage()

Returns a CGImage representation of the asset.

Declaration

func fullResolutionImage() -> Unmanaged<CGImage>!

Return Value

A CGImage representation of the asset, or NULL if a CGImage representation could not be generated.

Discussion

This method returns the biggest, best representation available.

To create a correctly-rotated UIImage object from the CGImage, you use imageWithCGImage:scale:orientation: or doc://com.apple.documentation/documentation/uikit/uiimage/init(cgimage:scale:orientation:), passing the values of orientation() and scale().

See Also

Getting Image Representations