开发者

Iphone Core Image Filter

I'm wondering about that, I have seen into many sites describing that Core Image filters on Iphone doesn't support by Apple. But I have seen Core image filter in Core Animation example page on the Apple developer site. just look at here Iphone OS Reference Library, you will see that example on this page

CIFilter *filter = [CIFilter filterWithName:@"CIBloom"];
[filter setDefaults];
[filter setValue:[NSNumber numberWithFloat:5.0] forKey:@"inputRadius"];

A开发者_运维百科ny description for that would be appreciated.


Core Image is not available on the iPhone. From the CATransition Class Reference, when talking about the filter property:

While the CATransition class exposes this property, Core Image is not available in iPhone OS. Currently the filters available for this property are undefined.

Also, in the CALayer Class Reference, when talking about the filters property:

While the CALayer class exposes this property, Core Image is not available in iPhone OS. Currently the filters available for this property are undefined.

As Cory points out, this guide was written for the Mac and modified to apply to the iPhone. Unfortunately, they left in an example that only works on the Mac.

See also the questions:

  • How can I use CIFilter in iPhone OS?
  • CIFilter available in the iPhone SDK?


You're quoting the Core Animation Programming Guide which was originally written for Mac OS X and has since been updated to include iPhone OS. Not all code samples will work on both OS's. You'll find this to be true in many of Apple's programming guides.

Take a look at the revision history.


Core Image is available for iOS 5, currently in beta. while not all the Mac Filters are included thus far, there's still a good selection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜