Do CALayer filters apply to non-image drawing?
Do CALayer filters apply to non-image drawing?
- Subject: Do CALayer filters apply to non-image drawing?
- From: Dave Fernandes <email@hidden>
- Date: Tue, 05 Feb 2013 15:29:27 -0500
I'm trying to apply a bloom effect to shapes drawn in a CALayer subclass (drawInContext: method). This is on iOS 6 in the simulator. The CIBloom filter is created, but it doesn't seem to affect the layer's rendering. My understanding is that CALayer's filters property should work on iOS 6. But perhaps it only applies to the contents object and not other drawing? Can anyone confirm whether this should work?
Thanks,
Dave
Code to add the filter in the layer subclass's init method:
CIFilter* filter = [CIFilter filterWithName:@"CIBloom"];
[filter setDefaults];
self.filters = @[filter];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden