【发布时间】:2011-02-11 02:26:56
【问题描述】:
我正在为我的屏幕拍照并使用UIGraphicsGetImageFromCurrentImageContext() 对其进行操作。一切正常。但是,在 iPhone 4 上,分辨率看起来很破旧,因为它使用的图像似乎是标准分辨率,而不是 @2x。有什么办法可以提高生成图像的分辨率?
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
【问题讨论】:
标签: iphone cocoa-touch