UIImage(MMTransform) Category Reference
Declared in | UIImage+MMTransform.h UIImage+MMTransform.m |
Overview
Adds custom image transformations that are needed
for our application. Mainly a grey scale transformation
and adding a mask to an existing image.
Class Methods
addRestrictionMask:
- Applies a greyscale filter to the specified
+ (UIImage *)addRestrictionMask:(UIImage *)image
Discussion
- image.
*
- @param image The image to apply the filter to.
*
- @return A new image that has the grey filter applied
Declared In
UIImage+MMTransform.h
imageWithImage:scaledToSize:
- Resizes an image to the specified dimensions.
+ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize
Discussion
*
@param image The image to be resized.
@param newSize The new dimensions of the image.
*
- @return The image with the new dimensions.
Declared In
UIImage+MMTransform.h