<div dir="ltr">I am patching now, but I cannot promess I will have time to debug :( </div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/29 <span dir="ltr"><<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2012/12/29 22:41:44, <a href="http://xavier.thomas.1980_gmail.com" target="_blank">xavier.thomas.1980_gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> However, byte buffers behaves quite fuzzy. When i do a stroke with<br>
</blockquote>
white<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> brush on complete transparent image, i should see the whole stroke<br>
</blockquote>
being<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> white in RGB display mode, but it fades up to darkish colors to the<br>
> sides of brush. Converting pixels from straight-byte to premul-float<br>
</blockquote>
in<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> IMB_rectblend and using IMB_blend_color_float doesn't give correct<br>
> result here.<br>
</blockquote>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Darkish colors in the semitransparent areas is often a sign of having<br>
premultiplied colors by alpha twice or more.<br>
</blockquote>
<br></div></div>
I know this and it doesn't seem to be this case. If you'll try the patch<br>
you'll notice that blending is much more "steppy" than just multiplying<br>
alpha twice. It could be extra premul, but there seems to be some other<br>
issue involved here.<br>
<br>
<a href="https://codereview.appspot.com/7018048/" target="_blank">https://codereview.appspot.<u></u>com/7018048/</a><br>
</blockquote></div><br></div>