Is there a simple way to let a layer throw an smooth shadow?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-22T19:37:59Z Indexed on 2010/05/22 19:40 UTC
Read the original article Hit count: 187

Filed under:

I was drawing a path into a layer. Lets say I can't access that drawing code in any way, because it comes from a compiled lib. Now I want to let that layer throw a shadow which matches the shape of its irregular content shape.

Is there an easy way to do it? Or must I draw like 20 of those layers and scale them up on every iteration, adjusting their alpha and letting the GPU do the extraordinarily heavy compositing?

© Stack Overflow or respective owner

Related posts about iphone