<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Hello,<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><o:p style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> </o:p></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">I have a question about the OP modes when compositing with Pixman. I had a look at the source code, but this part of the code is quite complex, so I couldn’t find the answer there.<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> </span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">What I would like to do is :<o:p></o:p></span></p><p class="MsoListParagraph" style="text-indent: 0px; margin: 0cm 0cm 0.0001pt 36pt;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><span lang="EN-US">- </span><span lang="EN-US">Use a plain color via a pixman_image_create_solid_fill on a RGBA color ;<o:p></o:p></span></span></p><p class="MsoListParagraph" style="text-indent: 0px; margin: 0cm 0cm 0.0001pt 36pt;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><span lang="EN-US">- </span><span lang="EN-US">Use a PIXMAN_a8 mask ;<o:p></o:p></span></span></p><p class="MsoListParagraph" style="text-indent: 0px; margin: 0cm 0cm 0.0001pt 36pt;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><span lang="EN-US">- </span><span lang="EN-US">Modify a target PIXMAN_r8g8b8a8 image.<o:p></o:p></span></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">So I do a pixman_image_composite(OP, fill, mask, target, …).<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> </span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">My problem is that I cannot find an OP which would allow me to blend fill and mask together into target. I mean if ‘fill’ color has an alpha (for instance 0x80), mask is also an alpha (for instance 0x80), I expect the target to be blent with the color modified with an alpha of 0x40 (full fill color x mask alpha => blent to target).<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">The closest I found is PIXMAN_OP_ATOP, but it always use the RGB from the fill color and the A from the mask, it never blends the color with the mask before compositing onto the target.<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> </span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Any help would be appreciated.<o:p></o:p></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"> </span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Regards.</span></p></body></html>