Reputation: 16315
How can I draw a shadow like the one you'd get with CGContextSetShadowWithColor but manually? I basically need to draw the path and then somehow blur it, so what I'm really asking is how to blur a shape drawn with CG so it looks like a shadow.
I need to draw it manually. Please don't ask "Why not just use the function?".
Upvotes: 1
Views: 604
Reputation: 4124
One option if you are on the Mac is to use Core Image which provides a several blur filters. Another more difficult option would be to draw into your own buffer and then run your own Gaussian Blur on it.
Upvotes: 1