Drawing into CGImageRef
问题 I want to create a CGImageRef and draw points to it. What context to use to create an empty CGImageRef and be able to draw onto it. CGContextRef or CGBitmapContextRef? If you can provide code to create an empty CGImageRef image and draw to it I would appreciate. 回答1: #define HIRESDEVICE (((int)rintf([[[UIScreen mainScreen] currentMode] size].width/[[UIScreen mainScreen] bounds].size.width )>1)) - (CGImageRef) blerg { CGFloat imageScale = (CGFloat)1.0; CGFloat width = (CGFloat)180.0; CGFloat