【发布时间】:2015-03-25 05:38:54
【问题描述】:
我正在尝试为尺寸接近 5000*3000 的较大图像尺寸加载过滤器,这些图像尺寸是我从 Web Search 下载的。当为较大的图像尺寸应用这些过滤器时,应用程序崩溃并因此终止。以下是我目前用于预览过滤器的代码:
CIContext *context = [CIContext contextWithOptions:nil];
CIImage *outputImage = [filter.filter outputImage];
CGImageRef cgimg = [context createCGImage:outputImage fromRect:[outputImage extent]];
UIImage *displayImage = [UIImage imageWithCGImage:cgimg];
下面的代码行导致了这个问题,有人遇到过这个问题吗?
CGImageRef cgimg = [context createCGImage:outputImage fromRect:[outputImage extent]];
【问题讨论】:
标签: ios objective-c iphone ios7 ios8