UIImage(ACLIPAdditions) Category Reference

Declared in UIImage+ACLIPAdditions.h

Overview

Defines extensions to UIImage that adds thumbnail generation

+ getThumbnailFromURL:size:

Returns an image that is a thumbnail of the given image.

class func getThumbnailFromURL(_ url: NSURL!, size size: CGSize!) -> UIImage
+ (UIImage *)getThumbnailFromURL:(NSURL *)url size:(CGSize)size

Parameters

url

The location of the image to generate a thumbnail of.

size

The size that the generated thumbnail will be.

Return Value

A UIImage that contains a thumbnail of the image at url that is size.

Discussion

Returns an image that is a thumbnail of the given image.

Generates a thumbnail of size for the image located at url.

Declared In

UIImage+ACLIPAdditions.h

+ getThumbnailFromImage:size:

Returns an image that is a thumbnail of the given image.

class func getThumbnailFromImage(_ image: UIImage! size size: CGSize!) -> UIImage
+ (UIImage *)getThumbnailFromImage:(UIImage *)image size:(CGSize)size

Parameters

image

The image to generate a thumbnail of.

size

The size that the generated thumbnail will be.

Return Value

A UIImage that contains a thumbnail of the image that is size.

Discussion

Returns an image that is a thumbnail of the given image.

Generates a thumbnail of size for the image.

Declared In

UIImage+ACLIPAdditions.h