<br><br><div class="gmail_quote">On Mon, Nov 2, 2009 at 12:21 AM, <a href="mailto:LukasT.dev@gmail.com">LukasT.dev@gmail.com</a> <span dir="ltr"><<a href="mailto:lukast.dev@gmail.com">lukast.dev@gmail.com</a>></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 Sunday 01 November 2009 15:25:58 Dmitry Kazakov wrote:<br>
> Hi!<br>
><br>
> Just an observation i got today while using PS7. =)<br>
> It has quite good and fast zooming engine. And the most interesting fact<br>
> about that - it uses different zoom-algorithms for different zoom-levels.<br>
> More exactly:<br>
><br>
> For zoom-levels 100,50,25,12.5 - it uses smooth-scale algorithm<br>
> For other levels - nearest-neighbor. More than that, it uses nearest<br>
> prescaled(?) image for NN-sampling.<br>
><br>
<br>
</div></div>In Krita's OpenGL canvas we use linear interpolation (you called that smooth-<br>
scale) for zoom level below 200 % and nearest neighbour for the levels above.<br>
Check kis_opengl_canvas2.cpp (line 223).<br>
<br></blockquote><div><br>QPainter canvas works right the same way =)<br></div></div><br><br clear="all"><br>-- <br>Dmitry Kazakov<br>