CALayer compositingFilter,iOS 5和CoreImage [英] CALayer compositingFilter, iOS 5 and CoreImage

查看:528
本文介绍了CALayer compositingFilter,iOS 5和CoreImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CALayer的API文档状态:(我不确定文档是否是最新的?)

The API Docs for CALayer state: (I'm not sure if the docs are up to date??)


compositingFilter A CoreImage过滤器用于将接收者的
内容与背景进行合成。动画。

compositingFilter A CoreImage filter used to composite the receiver’s contents with the background. Animatable.

@property(保留)id compositingFilter

@property(retain) id compositingFilter

...

特殊注意事项当CALayer类公开此属性时,
Core Image在iOS中不可用。目前这个属性的
过滤器是未定义的。

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.

但是在iOS5上可以使用CoreImage,所以我可以添加一个CoreImage过滤到CALayer并将该图层添加到另一个图层并期望它能够正常工作?

But CoreImage IS available on iOS5, so could I add a CoreImage filter to a CALayer and add that layer to another layer and expect it to work?

我想在图层中添加子图层并让它使用特定的混合模式(乘)。我无法弄清楚如何做到这一点。

I want to add a sublayer to a layer and have it use a specific blend mode (multiply). I can't figure out how to do this otherwise.

推荐答案

虽然文档尚未修改,尽管Core Image是现在在iOS中部分可用,只有一小部分功能存在。 CALayer合成过滤器,后台过滤器等属于存在的事物。所以你应该继续忽略 compositingFilter 属性。

Although the docs have not been revised, and although Core Image is now partially available in iOS, only a tiny bit of its functionality is present. CALayer compositing filter, background filters, and so forth, are among the things that are not present. So you should go on ignoring the compositingFilter property.

这篇关于CALayer compositingFilter,iOS 5和CoreImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆