Icy-imaging/Icy-Kernel — pull request #336 by tlecomte (2012-06-12 14:20:05+00:00)
Title: Filtering in Canvas2D and CanvasMap

Dear Icy masters,

Here is a pull request for filtering in canvas2d and canvasMap.

-Commit 629c5b27 enables bicubic interpolation on the canvas when the view is not moving.

-Commut 652ebf3d reduces the scale limit between nearest-neighbour and bicubic. Before, NR was used when the scale is larger than 400%. It is now used when the scale is larger than 300%. I find it clearer.

-Commits 83e1991d and 242ae87d add a downsampling step when the scale is smaller than 1. This removes aliasing artefacts. The downsampling is a high-quality Lanczos3 filter provided by a library named java-image-scaling. The correspoding jar has to be added to the build path ! It can be downloaded from there: http://code.google.com/p/java-image-scaling/

- Finally, commit 20da8983 enables the downsampling filter and the bicubic interpolation on the CanvasMap. I think it looks much nicer...

What do you think about these modifications ?

Timothée