In mac osx (cocoa), It is very easy to make a blank image of a specific size and draw to it off screen:
NSImage* image = [[NSImage alloc] initWithSize:NSMakeSi
You can do that as follows:
UIGraphicsBeginImageContext(CGSizeMake(64, 64)); //Drawing code here UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();
Here is Apple's Graphics and Drawing reference.