【发布时间】:2012-07-21 03:19:49
【问题描述】:
我读过一些推荐使用的帖子:
UIGraphicsBeginImageContextWithOptions((image.size), NO, 0.0f)
代替:
UIGraphicsBeginImageContext(image.size).
因为第一个在绘制时使用 Retina-scale,否则会得到块状图像。
我对何时使用或不使用视网膜比例选项感到有些困惑。
如果我有一张 1000x1000 像素的照片,并且我调用 UIGraphicsBeginImageContext 传递这些尺寸,我是否没有具体指定要绘制多少点?可以吗?
或者我应该调用 UIGraphicsBeginImageContextWithOptions 传递一半的尺寸(500x500px)?有什么区别吗?
【问题讨论】:
-
I've read some posts which recommend the use of... Because the first one uses Retina-scale when drawing, otherwise you get blocky images.- 这个注释对我帮助很大。谢谢!
标签: ios core-graphics core-image