Re: How to grab content of CALayer and sublayers into a bitmap

2010-07-22 Thread Kevin Wojniak
Depending on your needs, the CGWindow API may do what you want. It can generate images of windows, and then you could crop the image down. But if you're going for transparency that probably won't work. On Jul 21, 2010, at 10:55 AM, Oleg Krupnov wrote: > Hi, > > I need to make a snapshot of a

How to grab content of CALayer and sublayers into a bitmap

2010-07-21 Thread Oleg Krupnov
Hi, I need to make a snapshot of a CALayer, together with all its sublayers and effects, into a bitmap. I've found I can use -[CALayer renderInContext:], but I find it too slow, particularly because some of the sublayers have shadows and the Shark shows that most of time is spent in calculating b