<div class="h5"><br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, we probably need to compare the current code to the code in 1.6, but<br>
there it worked perfectly. This is how the selection brush worked in 1.6:<br></blockquote></div><br>Well, Boud, just imagine:<br><br>We have a 3x3px brush. It has crossed form.<br><br>It's alpha() channel looks like:<br>
<font face="courier new,monospace"><br> 0 255 0 <br>255 255 255<br> 0 255 0<br><br><span style="font-family: arial,helvetica,sans-serif;">It's gray() channel looks like</span><br></font><br><font face="courier new,monospace"> 0 128 0 <br>
128 255 128<br>
0 128 0<br>
</font><br><br>Imagine we paint with this brush onto a transparency mask that initially looked like:<br><br><font face="courier new,monospace">100 100 100 <br>
100 100 100<br>100 100 100</font><br><br>In current realization we get wrong result - we just copy alpha() channel of the brush onto mask:<br><br><font face="courier new,monospace"> 0 255 0 <br>
255 255 255<br> 0 255 0</font><br><br>Right realization should paint like a normal brush:<br><br><font face="courier new,monospace">100 128 100 <br>
128 255 128<br>
100 128 100</font><br><br>That is what i mean. =)<br><br clear="all"><br>-- <br>Dmitry Kazakov<br>