[Xr] Clipping problems

Soorya Kuloor skuloor at verano.com
Thu May 29 08:26:50 PDT 2003


On Wed, 2003-05-28 at 20:44, Carl Worth wrote:
> On May 28, Carl Worth wrote:
>  > On May 28, Soorya Kuloor wrote:
>  >  > I am trying to use clipping in the Xr library and having problems with
>  >  > it. Either my understanding of clipping is wrong or there is a bug.
>  > 
>  > Your code looks fine. This is definitely a bug.
> 
> This bug is fixed now in the CVS version of Xr.
> 

Great!! I tried it and it solves all the clipping scenarios that I have
tried (haven't tried the text and image stuff yet), even with multiple
shapes (both fill and stroke). I'll let you know if I have any problems.

> It turns out that the clip region was being translated so that its
> bounding box coincided with the origin.
> 
> The example you gave before should work now. Let me know if you see
> any more problems.
> 
> And do note that clipping only works for XrStroke and XrFill
> currently, (eg. images and text will not yet be clipped). Also, the
> clipping code is not optimized at all so don't be surprised if the
> performance is underwhelming.
> 
> -Carl





More information about the cairo mailing list