[Cairo] Rectangle-based clipping for surfaces

Bill Spitzak spitzak at d2.com
Thu Oct 16 14:45:09 PDT 2003


On Wednesday 15 October 2003 10:53 pm, Banlu Kemiyatorn wrote:

> Bill Spitzak wrote:
> >>The only thing left that I dislike is that in the path-based clipping
> >>API, cairo_clip always reduces the size of the clip region. 

> Sorry, I didn't pay attention to Cairo and the list for a while. By what
> you've mentioned, how
> do I implement initclip-like functionality? Am I missing some points?

I would initialize the clip to the entire surface's area when you change what 
surface a cairo_t is drawing to. You will still get the original clip back if 
you pop back states to the previous surface. In in fact you can draw outside 
the same clip on a surface if you do a set-surface call with the same surface.

-- 
                   ,~,~,~,~ ~ ~ ~ ~
     /\_       _|_========___         Bill Spitzak
 ~~~/\/\\~~~~~~\____________/~~~~~~~~ spitzak at d2.com




More information about the cairo mailing list