[cairo] Proper invocation of cairo_clip()?

Bob Jamison rjamison at titan.com
Tue Mar 15 11:50:19 PST 2005


Thanks for the reply!

Owen Taylor wrote:


>Well, it shouldn't segfault ... so file a bug in bugzilla.

Never mind.  The width param was 0.0, resulting in no traps.
 (Maybe the function should check this?)

> 
>
>But it probably doesn't what you want... (not exactly
>sure what that is, but that call establishes a clip 
>of [x,y,width,height] in device space, so after that call
>"do my drawing" is going to have to draw at 2*x, 2*y to
>not be clipped.)
>

Here is what I am trying to do: take a subrect of the drawing
surface and use it in vacuo of the rest of the drawing, like
a virtual drawing surface:

http://troi.hous.es3.titan.com/inkscape/files/clip-n-translate.png

Am I trying to do something out of bounds?  Maybe cairo_copy()
has a purpose?



Thanks, 

Bob





More information about the cairo mailing list