On Sun, Dec 28, 2008 at 8:07 AM, Dusan Halicky <span dir="ltr"><<a href="mailto:dusan.halicky@gmail.com">dusan.halicky@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have transparent png image. Can I somwhow in cairo draw it's shadow?<br>
I mean not rectangular shadow of picture, but shadow of it's contents.<br>
I was thinking about another surface - copy of original - but darken<br>
to black color and displayed behind original surface. However I don't<br>
know how to make this "darken" effect in cairo. Thanks.<br>
</blockquote><div> </div></div>Set the image surface as the mask in your cairo context, then paint black.<br><br clear="all">Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>