I am using this command to resize the image,
image = image.getScaledInstance(width, height, Image.SCALE_SMOOTH),
and it is too slow, about 1-2 sec per image. Is there a way to speed this up?
I am thinking of two approaches.
1. I heard that if I do the same in Grahics2D, it will be much faster. But there is not direct replacement for this call, so what should I do?
2. My images are 90% white space, so if I could tell it not to resize white space, I would be fine. But I can not dig this out of Java source code.