<div dir="ltr">Ah, never mind I resolved this by using a mask! <div><br></div><div>I did notice a particular bug with using a PIXMAN_a8  mask on images of sizes not divisible by 4 such as a width 854.  The alpha of the mask was completely ignored. I was using composite with PIXMAN_OP_OVER and running an arm build neon disabled.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 11:39 AM, Jonathan Meson <span dir="ltr"><<a href="mailto:jona@visualblasters.com" target="_blank">jona@visualblasters.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys, I'm new to the list. I'm very excited about this powerful library and slowly understanding how to use it properly.<div><br></div><div>So, I'm looking to modify the opacity of an image but I'm not sure how. I attempted to do some research and try some things but it was a bit hard finding documentation or samples.<div><br></div><div>The simple formula to set opacity at 50% is:</div><div>float alpha = 0.5f;</div><div>C = c*alpha;</div><div>A = a*alpha;<br clear="all"><div><br></div><div>However, I'm not sure how to achieve this using pixman_image_composite or any other method from the pixman library.</div><div><br></div><div>Thanks for any details or guidance with respect to this.</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div><em><strong style="background-color:rgb(255,255,255)"><font color="#3d85c6">Jonathan Meson</font></strong></em></div><div><em><font color="#999999">CEO and Lead Engineer</font></em></div><div><font color="#999999">Visual Blasters LLC</font></div><div><font color="#999999"><a href="tel:717-813-4287" value="+17178134287" target="_blank">717-813-4287</a></font></div></div></div></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><em><strong style="background-color:rgb(255,255,255)"><font color="#3d85c6">Jonathan Meson</font></strong></em></div><div><em><font color="#999999">CEO and Lead Engineer</font></em></div><div><font color="#999999">Visual Blasters LLC</font></div><div><font color="#999999">717-813-4287</font></div></div></div></div>
</div>