Although I assumed before that 'drawImage' is way faster, it is nice to know it for sure! However, the very best of your article are the figures. Well chosen to show the computational speed and image quality!
Btw. Java2D rendering is not deferred, isn't it?
Using this technique, I believe a 'getScaledReferemceImage' could be even faster when used correctly:
1. The user creates ONCE a scaled reference, which only holds the new size (and scale-flags) besides a reference to the original image.
2. This instance is evaluated ONCE each frame before drawing (n-times), whereby it uses the actual data of the original image
Cheers,
Michael Nischt |