Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CALayer compositingFilter, iOS 5 and CoreImage

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

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.

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.

like image 975
horseshoe7 Avatar asked Dec 04 '11 19:12

horseshoe7


1 Answers

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.

like image 160
matt Avatar answered Nov 01 '22 07:11

matt