On Sun, Dec 28, 2008 at 8:07 AM, Dusan Halicky <span dir="ltr">&lt;<a href="mailto:dusan.halicky@gmail.com">dusan.halicky@gmail.com</a>&gt;</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&#39;s shadow?<br>
I mean not rectangular shadow of picture, but shadow of it&#39;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&#39;t<br>
know how to make this &quot;darken&quot; effect in cairo. Thanks.<br>
</blockquote><div>&nbsp;</div></div>Set the image surface as the mask in your cairo context, then paint black.<br><br clear="all">Rob<br>-- <br>&quot;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.&quot; [Isaiah 53:5-6]<br>