CALayer 状态的 API 文档:(我不确定文档是否是最新的??)
compositingFilter A CoreImage filter used to composite the receiver’s contents with the background. Animatable.
@property(retain) id compositingFilter
...
Special Considerations While the CALayer class exposes this property, Core Image is not available in iOS. Currently the filters available for this property are undefined.
但是 CoreImage 在 iOS5 上可用,所以我可以将 CoreImage 过滤器添加到 CALayer 并将该层添加到另一层并期望它工作吗?
我想向图层添加一个子图层并让它使用特定的混合模式(乘法)。否则我无法弄清楚如何做到这一点。
最佳答案
尽管文档尚未修订,而且 Core Image 现在在 iOS 中部分可用,但仅存在其一小部分功能。 CALayer 合成过滤器、背景过滤器等都不存在。所以你应该继续忽略 compositingFilter
属性(property)。
关于ios5 - CALayer compositingFilter、iOS 5 和 CoreImage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8378074/