UIImage screenshot loses its quality

前端 未结 5 1390
再見小時候
再見小時候 2020-12-11 09:37

I am merging two images and then I take a screenshot by applying this code:

UIGraphicsBeginImageContext(size);
[self.view.layer renderInContext:UIGraphicsGet         


        
5条回答
  •  甜味超标
    2020-12-11 10:08

    Try using the withOptions version of UIGraphicsBeginImageContext

    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
    

提交回复
热议问题