[OpenJDK 2D-Dev] <AWT Dev> [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu Nov 7 00:49:08 UTC 2013
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.
More information about the 2d-dev
mailing list