[cairo] masking in herds

Donn donn.ingle at gmail.com
Tue Nov 6 10:16:43 PST 2007


> Alternately, if your masking is only something like "restrict to a
> circle" you could do something like:
>
> 	create_circle_path (cr);
> 	cairo_clip (cr);
>
> 	draw_other_stuff (cr);
That clip did the job. It took me at least an hour to figure out that one must 
not fill() the path before clip() -- but after that it's working like a bomb!

Oh man, this is fun.

\d


More information about the cairo mailing list