setSourceProgressivePasses

Hi!

I’m using the following code to create thumbnails from images. The two ImageReadParam specified are parameters to improve the reading performance of the source images. I’d like to know how can I tweak these parameters quite a bit to get more performance, because I’m not an expert in 2D subjects.


...
param.setSourceProgressivePasses(0, 4);
param.setSourceSubsampling(128, 128, 0, 0);
BufferedImage image = reader.read(0, param);
...

Thanks in advance