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

[macosx] Support automatic @2x images loading on Mac OS X

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      os_x
    • Verification:
      Not verified

      Backports

        Description

        This issue is part of the general issue JDK-7124410 [macosx] Lion HiDPI support

        A user provides high resolution images with @2x modifier.
        The Toolkit.getImage(String filename) and Toolkit.getImage(URL url) methods should automatically load the high resolution image and show an image with best fit resolution on HiDPI display (Retina) on Mac OS X.

        For example, there are files on disk:
        - /dir/image.ext
        - /dir/image@2x.ext

        Image image = Toolkit.getDefaultToolkit().getImage("/dir/image.ext") //both images (image.ext and image@2x.ext) should be automatically loaded
        graphics2d.drawImage(image,..) // The image with necessary resolution should be drawn according to the display transform and scale
        1. jdk.patch
          15 kB
          Alexander Scherbatiy

          Issue Links

            Activity

            Hide
            alexsch Alexander Scherbatiy (Inactive) added a comment - - edited
            8-defer-request:
            High resolution images support is dropped for HiDPI displays in JDK 8.
            Show
            alexsch Alexander Scherbatiy (Inactive) added a comment - - edited 8-defer-request: High resolution images support is dropped for HiDPI displays in JDK 8.
            Hide
            maxelsso Mathias Axelsson (Inactive) added a comment -
            Release team: Approved for deferral.
            Show
            maxelsso Mathias Axelsson (Inactive) added a comment - Release team: Approved for deferral.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/547148daf7af
            User: alexsch
            Date: 2014-01-30 09:41:31 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/547148daf7af User: alexsch Date: 2014-01-30 09:41:31 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/547148daf7af
            User: lana
            Date: 2014-02-10 18:56:57 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/547148daf7af User: lana Date: 2014-02-10 18:56:57 +0000
            Hide
            mkhramov Maksim Khramov (Inactive) added a comment -
            No way to verify.
            Show
            mkhramov Maksim Khramov (Inactive) added a comment - No way to verify.

              People

              • Assignee:
                alexsch Alexander Scherbatiy (Inactive)
                Reporter:
                art Artem Ananiev
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: