UIGraphicsGetImageFromCurrentImageContext gives poor quality / low resolution image, how do I get better?

前端 未结 1 617
暖寄归人
暖寄归人 2021-01-22 04:23

Ok so I am taking a screen shot of a photo I took with my camera on the iPhone. I put the camera photo into UIImageView and grab a screenshot of it using this sort of code (this

相关标签:
1条回答
  • 2021-01-22 04:46

    You're exactly right. The resolution of the screen (320 x 480) is much less than the camera (1200 x 1600 on 3G, 1536 x 2048 on the 3GS) so your UIImageView must be 320x480, and it automatically downsamples your image to fit. This seems convoluted, though -- you already have the photo as a UIImage at the higher resolution -- are you trying to overlay things onto it or something?

    0 讨论(0)
提交回复
热议问题