[cairo] creating non-rectangular clips

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Thu Jan 14 16:10:44 PST 2016

On 14.01.2016 08:44, Lawrence D'Oliveiro wrote:


> To define such a path, you will need two subpaths: one that covers the
> largest possible area into which drawing might happen, and another that
> covers just the boundary of the window. Give them opposite directions,
> and tne winding-number fill rule will produce the desired result. Or
> use the even-odd fill rule, then the subpath directions don’t matter.

I know how to create a fill *inside* the window, but not the opposite.
Could you give me some example code ?


Enrico Weigelt,
metux IT consulting

More information about the cairo mailing list