All,<br><br>the current cairo compositing operators combine blending and compositing [1].<br>This means that if you do an 'overlay', the result of the 'overlay'<br>blending formula will always be composited with 'src-over'.<br>
<br>Nikos (from Canon) and I (from Adobe) have a proposed working draft<br>that allows people to specify blending and compositing in CSS [2]. As<br>an example, this would allow you to do a 'screen' blend on an HTML<br>
element with a 'src' compositing mode. This separation could also be<br>extended to canvas.<br><br>Looking at the Cairo architecture, it seems that this could be added<br>by adding an optional blend mode operator to 'set_operator'.<br>
What do people think?<br><br>Rik<br><br>1: <a href="http://cairographics.org/operators/">http://cairographics.org/operators/</a><div>2: <a href="https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html">https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html</a><br>
3: <a href="http://cairographics.org/manual/cairo-cairo-t.html#cairo-set-operator">http://cairographics.org/manual/cairo-cairo-t.html#cairo-set-operator</a><br></div>