Pattern (pop) and clip

Donn <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.