UIImage-categories
UIImage-categories copied to clipboard
Resize a UIImage the right way from Trevor’s Bike Shed
UIImage-categories
These classes are UIImage categories written taken from Trevor's Bike Shed.
See author post for explanation: http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
It provides:
UIImage+Resize.h, UIImage+Resize.m
Extends the UIImage class to support resizing (optionally preserving the original aspect ratio), cropping, and generating thumbnails.
UIImage+RoundedCorner.h, UIImage+RoundedCorner.m
Extends the UIImage class to support adding rounded corners to an image.
UIImage+Alpha.h, UIImage+Alpha.m
Extends the UIImage class with helper methods for working with alpha layers (transparencies).