[cairo] defining CLAMP extend mode

Owen Taylor otaylor at redhat.com
Wed Oct 25 14:04:06 PDT 2006


On Wed, 2006-10-25 at 13:26 -0700, Bill Spitzak wrote:
> 
> Owen Taylor wrote:
> 
> > What I was saying was simply that if we add a new extend mode
> > EXTEND_CLAMP, say, that has the meaning:
> > 
> >  "Sample with EXTEND_PAD then multiple the image by a mask of the 
> >   transformed source"
> > 
> > Then we've taken away the ability of the application to choose their
> > own path for a fill, because if the application's fill has segments
> > that match the boundaries of the transformed source, you'll have
> > antialiasing problems.
> > 					- Owen
> 
> Except the problem is *worse* with the current mode, as the edge of the 
> image is the antialiased resampling of the pixels with a black edge 
> pixel mixed in. 

Nobody Thinks The Current Mode Is Correct.
						- Owen




More information about the cairo mailing list