<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="font-family: &#39;DejaVu Sans Mono&#39;; font-size: 9pt; font-weight: 400; font-style: normal;">

<p style="margin: 0px; text-indent: 0px;"> </p>
<p style="margin: 0px; text-indent: 0px;">use the COMPOSITE_COPY composite op.</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">Reason #1 Avoid duplicating existing functionnality :) Especially since there might be optimization</p>
<p style="margin: 0px; text-indent: 0px;">Reason #2 In your case, there will be a limited amount of memcpy, and memory usuage, as tiles will be shared between src and dst</p>
<p style="margin: 0px; text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;">And in any case, avoid using deprecated iterators in new code.</p>
<p style="margin: 0px; text-indent: 0px;"></p></div></blockquote></div><br>Well, the problem here is that KisPainter::bitBlt doe not allow to read from oldRawData. I think the interface should be modified somehow.<br><br>
-- <br>Dmitry Kazakov<br>