Declared in OCAUtilities.h

Overview

Category extensions to UIImage

Class Methods

imageFromView:

Make an image from a UIView

+ (UIImage *)imageFromView:(UIView *)view

Parameters

view

UIView to image

Return Value

Image if successful, nil otherwise

Declared In

OCAUtilities.h

imageFromView:scaledToSize:

Make an image from a UIView, scaled to a CGSize

+ (UIImage *)imageFromView:(UIView *)view scaledToSize:(CGSize)newSize

Parameters

view

UIView to image

newSize

Desired new size

Return Value

Scaled image if successful, nil otherwise

Declared In

OCAUtilities.h

imageWithImage:scaledToSize:

Re-size a UIImage

+ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize

Parameters

image

UIImage to re-size

newSize

Desired new size

Return Value

Scaled image if successful, nil otherwise

Declared In

OCAUtilities.h