用于 CategoryDistortionEffect 的 CIFilter 示例
有人可以展示一个为 kCICategoryDistortionEffect 初始化 CIFilter 的示例吗?
我需要为我的摄影创建扭曲效果。我读到,在 IOS 5 中使用 CIFilter 是可能的。 但我找不到合适的代码如何实现它。
Can someone show an example of initializing the CIFilter for kCICategoryDistortionEffect?
I need to create Distortion effect for my photography. I have read that it is possible, with CIFilter in IOS 5.
But I can not find a suitable code how to implement it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一直在寻找这个。到目前为止,它似乎在 iOS 5 中不可用。证据如下:
如果执行:
您将看到它仅返回以下列表,不包含任何 kCICategoryDistortionEffect。它只包含:
并且缺少我们感兴趣的:
I've been looking for this to. Thus far it appears that's not available in iOS 5. Here's the evidence:
If you execute:
you'll see that it only returns the following list which doesn't contain any of the kCICategoryDistortionEffect's. It only contains:
and is missing the one's we're interested in:
您可以使用以下代码查看所有过滤器类型
You can see all the filter types by using below code