On 8/26/2015 9:48 AM, Hendrik Schreiber wrote:
On Aug 25, 2015, at 23:26, Jim Graham <james.gra...@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.

  Thanks,
  Alexandr.


Just my 2c.

-hendrik

Reply via email to