On Sat, May 22, 2010 at 5:06 AM, Alexander Shulgin <span dir="ltr"><<a href="mailto:alex.shulgin@gmail.com">alex.shulgin@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
</div>I'm not sure I've fully understood what are you talking about in the<br>
first part, but what you proposing seems to be already in cairo-1.9<br>
snapshots, look for cairo-script surfaces.<font color="#888888"></font><font color="#888888"></font></blockquote><div><br>Just to clear up what I meant in the first part of my post: since fill and stroke are separate operations in Cairo, drawing a transparent border around a transparent filled shape will result in the fill showing through the stroke, which may or may not be what's actually desired. If you want to apply transparency to the whole (fill + stroke) rather than each part separately, your only option is to use an intermediate surface containing the opaque object (fill + stroke) and then draw this surface onto the target while applying the desired level of transparency. A similar logic applies to compositing.</div>
</div>