UIGraphicsGetImageFromCurrentImageContext() Retina resolution?

I'm taking a picture of my screen and manipulating it by using UIGraphicsGetImageFromCurrentImageContext(). Everything is working just fine. However, on an iPhone 4, the resolution looks pretty shabby as it seems like the image it uses is standard resolution, not @2x. Is there any way to increase the resolution of the resulting image?

UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
36
задан sudo rm -rf 11 February 2011 в 02:26
поделиться