UIGraphicsGetImageFromCurrentImageContext() Retina resolution?

前端 未结 1 1787
遇见更好的自我
遇见更好的自我 2021-01-31 16:09

I\'m taking a picture of my screen and manipulating it by using UIGraphicsGetImageFromCurrentImageContext(). Everything is working just fine. However, on an iPhon

1条回答
  •  余生分开走
    2021-01-31 16:40

    You should use UIGraphicsBeginImageContextWithOptions which allows you to set the scale factor. Use a scale factor of 0.0f to use the device's scale factor.

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