[cairo] Clipping and filling
Donn
donn.ingle at gmail.com
Fri Nov 30 06:17:08 PST 2007
> Not sure if I understood correctly,
My fault entirely. It's difficult to do.
> but sounds like you are looking
> for fill_preserve() which does not clear the current path. If you need
> to consider different sources, it might get hairy though...
Put it this way: If I have:
ctx.rectangle ( ... ) # rect 1
ctx.set_source_rgb ( ... )
ctx.fill_preserve ( )
self.context.save ( )
self.context.clip ( )
ctx.rectangle ( ... ) # rect 2
ctx.set_source_rgb ( ...)
ctx.fill ( )
self.restore ( )
Will rect2 be clipped by rect 1 ? I'm off to test :)
\d
More information about the cairo
mailing list