Contents

maximumImageSize(forAspectRatio:)

Returns the recommended maximum image size for a @c CPThumbnailImage with the given aspect ratio.

Declaration

class func maximumImageSize(forAspectRatio aspectRatio: CGFloat) -> CGSize

Parameters

  • aspectRatio:

    The width-to-height ratio of the image.

Return Value

The recommended @c CGSize at which to size the image.

Discussion

Use this method to determine the correct size for images before providing them to

oversized images being held in the thumbnail pipeline.