<br><br><div class="gmail_quote">On Tue, Jan 5, 2010 at 12:48 PM, Boudewijn Rempt <span dir="ltr">&lt;<a href="mailto:boud@valdyas.org">boud@valdyas.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, 5 Jan 2010, Dmitry Kazakov wrote:<br>
<br>
&gt; On Tue, Jan 5, 2010 at 1:01 AM, Edward Apap &lt;<a href="mailto:schumifer@hotmail.com">schumifer@hotmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; SVN commit 1070110 by eapap:<br>
&gt; &gt;<br>
&gt; &gt; Use COMPOSITE_COPY when applying filter result<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;  M  +1 -1      kis_filter_job.cpp<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --- trunk/koffice/krita/image/filter/kis_filter_job.cpp #1070109:1070110<br>
&gt; &gt; @@ -64,7 +64,7 @@<br>
&gt; &gt;<br>
&gt; &gt;     // blt back onto the original<br>
&gt; &gt;     KisPainter p2(m_dev);<br>
&gt; &gt; -    p2.setCompositeOp(m_dev-&gt;colorSpace()-&gt;compositeOp(COMPOSITE_OVER));<br>
&gt; &gt; +    p2.setCompositeOp(m_dev-&gt;colorSpace()-&gt;compositeOp(COMPOSITE_COPY));<br>
&gt; &gt;     p2.setSelection(m_selection);<br>
&gt; &gt;     p2.bitBlt(m_rc.topLeft(), dst, m_rc);<br>
&gt; &gt;     p2.end();<br>
&gt; &gt;<br>
&gt;<br>
&gt; COMPOSITE_COPY doesn&#39;t pay any attention to the selections. At least it used<br>
&gt; to. Please check whether this patch breaks selected filter application.<br>
<br>
</div></div>Was there any reason for not fixing composite copy to take the mask into account?<br></blockquote></div><br>I don&#39;t know really. But it seems to me if we fix COMPOSITE_COPY, there will  absolutely be no difference between  COMPOSITE_COPY and COMPOSITE_OVER.<br>
<br>Just a thought: _COPY just copies area without any knowledge of it&#39;s content, while _OVER reads alpha() first.<br><br>-- <br>Dmitry Kazakov<br>