我的UIView中有一些子视图(UIImageView)。我试图将图像保存为更大的尺寸。如何使保存的图像成为我想要的尺寸。这会影响图像的质量,就像像素化一样吗?
CGSize temp = CGSizeMake(640, 840);
UIGraphicsBeginImageContext(temp);
[self.vwDesktop.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *imageToSave = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(imageToSave, nil, nil, nil);