hi, i’m using the following code to resize an image:
http://nopaste.easy-coding.de/?id=91
my machine:
p4 2.8ghz, ht enabled
kernel 2.4.22
jdk 1.4.2_04
unfortunatly, i’ve got the following times:
scaling image: 1280 * 1024 to 640*480
getScaledInstance: 157 msec
drawImage: 53559 msec
dispose: 0 msec
resizing image took: 54880 msec
somehow the drawImage-call is damn slow, is there some other way to do a image-resizing in java in a faster way? or is my code just ‘wrong’?
running that code on windows + jdk 1.5 + p3 500mhz is quite faster (~2sec)