[cairo] Erase a part of a draw

Felix Rabe public at felixrabe.textdriven.com
Fri May 9 09:54:02 PDT 2008


Hi,

I'm not sure you want to "fill a path" here, but you probably want to
use clipping (look for "clip" in the docs).

Greetings,
Felix

fab fab wrote:
> Hello, I have a question for Cairo-Dock. I'd like to erase a portion of
> a surface after I have drawned it. For exemple a function paints a
> surface on the context, and then another function wants to make a "hole"
> in this surface, totally transparent. How could I achieve that ? I've
> tried to fill a path with all the operators, but it never gives me the
> result I want.
> Thanks for your help !
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.cairographics.org/archives/cairo/attachments/20080509/b0b860dc/attachment.pgp 


More information about the cairo mailing list