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

Custom MultiResolution image support on HiDPI displays

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b83

      Backports

        Description

        This issue has been extracted from the JDK-8011059.

        The Multi Resolution image should support 2 basic operations:
        - Retrieve resolution variant according to the given width and height
        - Retrieve all available resolution variants

        The first method allows to get a resolution variant according to the current HiDPI scale and user's transforms
        The second method allows to create a multi-resolution image using another multi-resolution image as a base or converting the given multi-resolution image to NSImage on MacOSX (for example. setting a custom cursor. see JDK-8028212).

          Issue Links

            Activity

            Hide
            alexsch Alexander Scherbatiy (Inactive) added a comment -
            The issue is separated on 2 parts:
            - this issue covers MultiResolutionImage and AbstractMultiResolutionImage implementation
            - JDK-8041714 covers methods that create a MultiResolutionImage from the given collection of images
            Show
            alexsch Alexander Scherbatiy (Inactive) added a comment - The issue is separated on 2 parts: - this issue covers MultiResolutionImage and AbstractMultiResolutionImage implementation - JDK-8041714 covers methods that create a MultiResolutionImage from the given collection of images
            Hide
            alexsch Alexander Scherbatiy (Inactive) added a comment - - edited
            Here are two proposed solutions:
              MultiResolutionImage interface is introduced:
                http://cr.openjdk.java.net/~alexsch/8029339/webrev.06/

              Resolution variants are added directly to the Image:
               http://cr.openjdk.java.net/~alexsch/8029339/list/webrev.00

            For more details see discussion: http://mail.openjdk.java.net/pipermail/awt-dev/2014-August/008371.html
            Show
            alexsch Alexander Scherbatiy (Inactive) added a comment - - edited Here are two proposed solutions:   MultiResolutionImage interface is introduced:      http://cr.openjdk.java.net/~alexsch/8029339/webrev.06/   Resolution variants are added directly to the Image:     http://cr.openjdk.java.net/~alexsch/8029339/list/webrev.00 For more details see discussion: http://mail.openjdk.java.net/pipermail/awt-dev/2014-August/008371.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/7869179af058
            User: alexsch
            Date: 2015-09-15 13:29:23 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/7869179af058 User: alexsch Date: 2015-09-15 13:29:23 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/7869179af058
            User: lana
            Date: 2015-09-23 23:04:33 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/7869179af058 User: lana Date: 2015-09-23 23:04:33 +0000

              People

              • Assignee:
                alexsch Alexander Scherbatiy (Inactive)
                Reporter:
                alexsch Alexander Scherbatiy (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: