<div class="gmail_quote">On Thu, Jun 3, 2010 at 11:04 AM, Boudewijn Rempt <span dir="ltr">&lt;&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wednesday 02 June 2010, Dmitry Kazakov wrote:<br>
&gt; Hi, All!<br>
&gt;<br>
&gt; I was thinking over advantages/disadvantages of switching to<br>
&gt; KisImagePyramid projection backend and i&#39;m in a trouble now:<br>
&gt;<br>
&gt; We wanted to switch to it for eliminating creation of a big QImage for<br>
&gt; caching the projection. But how will we paint KisPaintDevice onto<br>
&gt; KisPrescaledProjection&#39;s internal QImage? Current implementation creates<br>
&gt; temporary QImage and paints it onto prescaled projection with<br>
&gt; QPainter::draw. The problem is, when we zoom in/out we will create the same<br>
&gt; fullsized QImage.<br>
<br>
</div>No, no: that should never happen. The QImage in KisPrescaledProjection should<br>
never be bigger than the view. The big QImage cache is a 100% projection of<br>
the KisImage&#39;s projection -- and that&#39;s not good.<br></blockquote><div><br>Then how should we paint KisPaintDevice onto QPainter? <br></div></div><br clear="all">PS:<br>/me&#39;s guts don&#39;t really like the perspective of writing their own smooth-scaling code :)<br>
<br>-- <br>Dmitry Kazakov<br>