JDK-8148619 : Select the closest resolution variant in BaseMultiResolutionImage
  • Type: Enhancement
  • Component: client-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2016-01-29
  • Updated: 2017-10-31
  • Resolved: 2017-10-31
Related Reports
Relates :  
Description
See the comment to the issue: JDK-8147849
----------------
    private static final BaseMultiResolutionImage IMG
            = new BaseMultiResolutionImage(new BufferedImage[]{
        generateImage(1, Color.BLACK),
        generateImage(20, Color.RED),
        generateImage(2, Color.GRAY)
    });

2. Please remove "generateImage( 2, Color.GRAY)" from the code and run again with GDK_SCALE=2. The "20x" image will be shown again. But 1x is closer to 2x than to 20x. 
----------------
Comments
http://mail.openjdk.java.net/pipermail/awt-dev/2017-October/013227.html
31-10-2017

http://mail.openjdk.java.net/pipermail/awt-dev/2017-September/013004.html
17-10-2017