Better quality image from UIGraphicsGetImageFromCurrentImageContext()

前端 未结 2 1287
后悔当初
后悔当初 2021-01-01 20:26

I\'m currently using UIGraphicsGetImageFromCurrentImageContext() to save a content\'s image to a user\'s camera roll, but the image quality is worse than if

2条回答
  •  温柔的废话
    2021-01-01 21:17

    If you're on retina display the size of the context is only half the size of the "real" image.

    Try to double the size (or to be correct use the contentScaleFactor of the view).

提交回复
热议问题