Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8148619

Select the closest resolution variant in BaseMultiResolutionImage

    Details

    • Introduced In Version:
      9

      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.
      ----------------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ssadetsky Semyon Sadetsky (Inactive)
                Reporter:
                alexsch Alexandr Scherbatiy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: