Mipmapping for canvas. Ideas and comments.
lukast.dev at gmail.com
Thu Jul 23 13:47:21 CEST 2009
>> Well, it seems that KisImage level really fits better.
>> Btw, doesn't OpenGL has it's own _hardware_ downsampling? Or even
>> mipmapping? I guess it's quite unreasonably to emulate mipmapping with cpu
>> when gpu can do it faster?
> 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 
There are also mip-map versions. I used bi-linear interpolation for
zoom til 2.0 (200 %), and nearest neighbohour at higher zoom.
More information about the kimageshop