[cairo] Pattern (pop) and clip

Donn donn.ingle at gmail.com
Tue Nov 26 01:02:56 PST 2013


Hi,

Given:

(In a valid context with a surface 500px by 500px)
rectangle (50px by 50px)
save
clip
push_group
draw other stuff
pop_group(pat)
restore

Would the pattern, pat, be the size of the clip 50x50px, or of the size 
of the surface 500x500px?

i.e. Should I bother clipping before I pop a pattern, or should I clip 
before using that pat in a set_source(pat) then paint() ?

What's the more efficient/fast approach?


\d



More information about the cairo mailing list