Observation of a zoom-engine of PS

Dmitry Kazakov dimula73 at gmail.com
Sun Nov 1 23:28:23 CET 2009


On Mon, Nov 2, 2009 at 12:21 AM, LukasT.dev at gmail.com
<lukast.dev at gmail.com>wrote:

> On Sunday 01 November 2009 15:25:58 Dmitry Kazakov wrote:
> > Hi!
> >
> > Just an observation i got today while using PS7.  =)
> > It has quite good and fast zooming engine. And the most interesting fact
> > about that - it uses different zoom-algorithms for different zoom-levels.
> > More exactly:
> >
> > For zoom-levels 100,50,25,12.5 - it uses smooth-scale algorithm
> > For other levels - nearest-neighbor. More than that, it uses nearest
> > prescaled(?) image for NN-sampling.
> >
>
> In Krita's OpenGL canvas we use linear interpolation (you called that
> smooth-
> scale) for zoom level below 200 % and nearest neighbour for the levels
> above.
> Check kis_opengl_canvas2.cpp (line 223).
>
>
QPainter canvas works right the same way =)



-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20091102/a4210496/attachment.htm 


More information about the kimageshop mailing list