getScaledInstance too slow, can I do it in Graphics2D?
Posted on 2004-08-23
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.