<AWT Dev> [OpenJDK 2D-Dev] Review request for 8029339 Custom MultiResolution image support on HiDPI displays
alexandr.scherbatiy at oracle.com
Tue Sep 15 14:15:16 UTC 2015
On 8/26/2015 9:48 AM, Hendrik Schreiber wrote:
>> On Aug 25, 2015, at 23:26, Jim Graham <james.graham at oracle.com> wrote:
>> Should we list the naming conventions that we support (mainly just "@2x"?), or should that be listed in the documentation of the various getImage() and createImage() methods?
> As mentioned back in April (http://mail.openjdk.java.net/pipermail/awt-dev/2015-April/009197.html), Apple may ship an 8k iMac this year (and if not, certainly next year, IMHO).
> I think it would be foolish to only support @2x and not also @3x, which has been supported by XCode for quite some time now.
There is a performance issue that the Toolkit.getImage(url) needs
to check if @2x, @3x, ... exist for any given image. It especially
takes a long time when images are stored on a remote server.
May be it is better to have a system property which can contain a
list of possible suffixes and used by Toolkit.getImage(...) methods for
resolution variants loading.
> Just my 2c.
More information about the awt-dev