I think you need the following:
UIGraphicsBeginImageContextWithOptions(newImageSize, YES, 0); CGContextRef context = UIGraphicsGetCurrentContext();
Note that UIGraphicsGetImageFromCurrentImageContext() returns an instance of a UIImage with auto-implementation.
Costique
source share