[cairo] Should Cairo support non-bitmap memory surfaces?
adrianlopezroche at gmail.com
Sat May 22 16:21:31 PDT 2010
On Sat, May 22, 2010 at 5:06 AM, Alexander Shulgin
<alex.shulgin at gmail.com>wrote:
> I'm not sure I've fully understood what are you talking about in the
> first part, but what you proposing seems to be already in cairo-1.9
> snapshots, look for cairo-script surfaces.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo