This is what I use. Works good. I will definitely watch this question to see if anyone has the best / fastest. I just added the category below to UIimage .
+ (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize { UIGraphicsBeginImageContext( newSize ); [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)]; UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return newImage; }
mmc Oct. 15 '09 at 17:14 2009-10-15 17:14
source share