Mipmapping for canvas. Ideas and comments.

LukasT lukast.dev at gmail.com
Thu Jul 23 22:35:34 CEST 2009


On Thursday 23 July 2009 16:49:22 Dmitry Kazakov wrote:
> >> Lukas is looking into that.
> >
> > OpenGL uses some small textures (tiles) that are mapped on planes
> > (quads) and when
> > the image is scaled, you can decide what algorithm is used. See [1]
> > There are also mip-map versions. I used bi-linear interpolation for
> > zoom til 2.0 (200 %), and nearest neighbohour at higher zoom.
>
> Btw, Lukas, does openGL canvas do resampling in his own classes? Does
> it use hardware acceleration for that?
I must say that this is not my expertise and I don't see much into it.
I suppose that the image is tiled to textures and then OpenGL handle 
scaling/resizing.

And OpenGL can do it with hardware if hardware supports it.


More information about the kimageshop mailing list