[cairo] Best strategy for complex screen drawing
timothee.lecomte at ens.fr
Sat Nov 26 10:35:16 PST 2005
>On Sat, 2005-11-26 at 14:52 +0100, Timothée Lecomte wrote:
>>It gives no seam, and it is much quicker (400 ms to draw the 10000
>>polygons on a generic image surface, instead of 1500 ms).
>>Unfortunately, there are some unwanted side effects, because I have to
>>draw polygons over already existing polygons, and with
>>CAIRO_OPERATOR_ADD this leads to some transparency effects. Here is a
>Maybe you want to use SATURATE rather than ADD?
By looking at http://cairographics.org/samples/operator_saturate.html ,
I would say yes, but when I choose it instead of add in my code, I don't
get the desired output :
As you can see, this time polygons which should overwrite previous ones
(like with CAIRO_OPERATOR_OVER) simply don't appear.
More information about the cairo