1
我捕捉画面的一部分,所述应用程序当前正在使用以下代码表示当丢失的质量:捕获屏幕
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *sourceImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIGraphicsBeginImageContext(CGSizeMake(320, 320));
[sourceImage drawAtPoint:CGPointMake(0, -45)];
UIImage *croppedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
问题是,比较到原来的画面时,结果具有降低的质量。 如何防止质量损失?
检查这个帖子http://stackoverflow.com/questions/13832871/resolution-of-capture-screen-image-is-not-retina – 2013-03-03 12:36:09