[cairo] Question about CAIRO_OPERATOR_SOURCE if paint
operation doesn't cover whole target surface
Carl Worth
cworth at cworth.org
Thu Nov 30 17:18:23 PST 2006
On Thu, 30 Nov 2006 18:40:57 -0600, Boris Zbarsky wrote:
> > cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
> > cairo_paint (cr);
>
> So this sets the destination surface to be uniformly rgba(0, 0, 0, 0)?
Yes, that's correct.
In your specific case, since you were just about to use
CAIRO_OPERATOR_SOURCE anyway, you could achieve the same result just
as easily with:
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_set_source_rgba (cr, 0, 0, 0, 0);
cairo_paint (cr);
> Thanks for the clarification,
You're welcome.
-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20061130/a465cd76/attachment.pgp
More information about the cairo
mailing list