On 07.11.2013 4:05, Clemens Eisserer wrote:
getScaledImage() returns a scaled "reference" (not a copy) of the
original image.
So when the original image is changed, the scaled instance has to change too.
When this is overriden like you suggest, this changes semantics of the API.

In case getScaledInstance() is not overridden, the user is stuck with
non-accelerated blits.
No If it is not overriden it will be noop and return the same image.
Chris has written a nice blog post about getScaledImage() and why it
should be avoided:
https://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

Regards, Clemens


--
Best regards, Sergey.

Reply via email to