Question about XRender specification

Peter Harris peter.harris at hummingbird.com
Tue Apr 8 14:21:49 PDT 2008


Helge Bahmann wrote:
>> 				XRenderCompositeTrapezoids(display,
>> 					PictOpOver, red_transp, picture, 0,
>> 					0, 0, &trap, 2);
> 
> the way you are calling, they are drawn independently, this means the first 
> trapezoid covers the pixel by 1/2, the second gets drawn over and now the 
> pixel is covered by 3/4 and NOT 1 !
> 
> The solution is to use PictOpDisjointOver; possibly to have to composite your 
> figure into a temporary mask and then use this pre-composited shape in a 
> second rendering step

Alternatively, you could specify a maskFormat other than NULL when you 
call XRenderCompositeTrapezoids.

Peter Harris
-- 
      Hummingbird Connectivity - A Division of Open Text
Peter Harris                    http://connectivity.hummingbird.com
Research and Development        Phone: +1 905 762 6001
peter.harris at hummingbird.com    Toll Free: 1 877 359 4866



More information about the xorg mailing list