[cairo] [Fwd: Re: Erase a part of a draw]
Felix Rabe
public at felixrabe.textdriven.com
Sat May 10 09:53:44 PDT 2008
You might want to clip the original surface with the negative mask of
your hole on top of the "unholed" image...
-------- Original Message --------
Subject: Re: [cairo] Erase a part of a draw
Date: Sat, 10 May 2008 15:12:12 +0200
From: fab fab <fabounet03 at gmail.com>
To: Felix Rabe <public at felixrabe.textdriven.com>
References:
<29711f840805090156i674db139w5f42d9ba478d8a66 at mail.gmail.com>
<482481AA.8070109 at felixrabe.textdriven.com>
Thanks for your answer !
Yes I could clip a "hole" on the original path before I paint the
surface to it.
But I'd like to make the "hole" after I've painted the surface. Is it
possible ?
2008/5/9 Felix Rabe <public at felixrabe.textdriven.com
<mailto:public at felixrabe.textdriven.com>>:
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 <mailto: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/20080510/b2dbecaf/attachment.pgp
More information about the cairo
mailing list