【发布时间】:2015-08-13 05:06:48
【问题描述】:
一种方法是:
CGImageRef scaledImage(CGImageref, destination rect)
{
context = CGBitmapContextCreate(rect...);
CGContextDrawImage(context, rect);
return CGBitmapContextCreateImage(context)
}
问题:
如果图像缩放操作非常频繁,则创建位图上下文可能会非常昂贵。还有其他方法可以缩放 CGimage 吗?或者缓存这样的位图上下文进行缩放操作是唯一的选择?
【问题讨论】:
标签: ios image-processing core-graphics