[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: Observation of a zoom-engine of PS
From: Dmitry Kazakov <dimula73 () gmail ! com>
Date: 2009-11-01 22:28:23
Message-ID: ae32c1ef0911011428mb26efaco5d249e1cb4fc5ff2 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Mon, Nov 2, 2009 at 12:21 AM, LukasT.dev@gmail.com
<lukast.dev@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
[Attachment #5 (text/html)]
<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>
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic