Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-11 Thread Steven Spencer
From CIImage.h: - (instancetype)initWithCGLayer:(CGLayerRef)layer NS_DEPRECATED_MAC(10_4,10_11,"Use initWithCGImage: instead."); - (instancetype)initWithCGLayer:(CGLayerRef)layer options:(nullable CI_DICTIONARY(NSString*,id) *)options NS_DEPRECATED_MAC(10_4,10_11,"U

Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Jeff Szuhay
> On Jun 9, 2016, at 4:20 AM, Graham Cox > wrote: > > Why do you draw into a CGLayer rather than a CGImage? For a couple reasons: • Because I draw my shapes into a CGLayer with Quartz2D. I’m not working with images on disk or from streams. • As recommends in th

Re: CIImage initWithCGLayer is deprecated in 10.11

2016-06-09 Thread Graham Cox
> On 9 Jun 2016, at 7:39 PM, Jeff Szuhay wrote: > > Here’s the thing: I draw into a layer, then I want to apply a > CIFilter to that layer. With initWithCGLayer deprecated, I > can’t for the life of me figure out how to use the existing > APIs to do what I want. > > The sample code — FunHous