【发布时间】:2014-04-04 12:21:49
【问题描述】:
我正在使用 coreImage 框架开发一个应用程序。我从 UIImage 创建了一个 CIImage。
CIImage *image = [CIImage imageWithCGImage:self.canvasImage.CGImage];
这里 self.canvasImage 是一个 UIImage,我调试它并且对象图像正在由编译器创建并带有一些内存。
我正在使用以下代码创建由 properties 方法返回的 NSDictionary 对象。
NSDictionary *opts =[image properties] ;
这里我的 opts 对象被分配了 nil 值。
我搜索了,但没有找到解决方案,为什么 properties 方法返回 nil 值?
【问题讨论】:
-
你在使用 CIContext 吗? ..像这儿? stackoverflow.com/a/7788510/1702413
-
我建议使用 NSMutableDictionary
标签: ios iphone core-image ciimage