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.
----------------
----------------
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.
----------------
- relates to
-
JDK-8029339 Custom MultiResolution image support on HiDPI displays
- Resolved