[cairo] libpixman - libpixregion, libic and slim merged; cairo built with it

Nathan Hurst Nathan.Hurst at infotech.monash.edu.au
Tue Dec 9 19:56:05 PST 2003


Bill Spitzak wrote:

>On Tuesday 09 December 2003 04:38 pm, Nathan Hurst wrote:
>
>  
>
>>Why would you want
>>a rectangle to include a winding number?
>>    
>>
>
>Under the non-zero-winding rule, a path made up of two intersecting 
>rectangles of opposite winding is a different shape than if the rectangles 
>had the same winding.
>
>Opposite winding would produce an xor, while same winding produces a union.
>
>I think we want to allow rectangles to be added to the current path and 
>represented compactly. Otherwise I'm not sure if this is going to be used.
>  
>
Are we talking about axis aligned rectangles, or arbitrary rectangles?  
I don't think adding axis aligned rectangles to a path is a good idea - 
for a start you can't transform them in any way besides scale, rotate 90 
and translate.  Axis aligned rectangles are useful for working with 
raster images, which is what I thought we were talking about?  Perhaps 
the word rectangle should be used when referring to the transformable 
shape, and box when referring to the axis aligned raster region?

njh





More information about the cairo mailing list