• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Do CALayer filters apply to non-image drawing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Do CALayer filters apply to non-image drawing?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: NSTask Explodes. Clueless.
  • Next by Date: Re: Do CALayer filters apply to non-image drawing?
  • Previous by thread: Re: KVO, which thread?
  • Next by thread: Re: Do CALayer filters apply to non-image drawing?
  • Index(es):
    • Date
    • Thread