Moved to my blog.
|@implementation UIImage (scale)|
|* Scales an image to fit within a bounds with a size governed by|
|* the passed size. Also keeps the aspect ratio.|
|* Switch MIN to MAX for aspect fill instead of fit.|
|* @param newSize the size of the bounds the image must fit within.|
|* @return a new scaled image.|