JDK-8029339 : Custom MultiResolution image support on HiDPI displays
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-11-28
  • Updated: 2017-05-17
  • Resolved: 2015-09-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b83Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
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).

Comments
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
26-03-2015

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
24-04-2014