<AWT Dev> [OpenJDK 2D-Dev] [8] Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays

Hendrik Schreiber hs at tagtraum.com
Thu Nov 7 12:41:30 PST 2013

On Nov 7, 2013, at 9:30 PM, Jim Graham wrote:

> How did Apple expose this in their JDK6?
> For the record, I'm saying that getImage("myimage.[fmt]") can load the @2x image and drawImage() could use that when needed - all of that can happen without any public API.
> But, for a developer to query a Toolkit Image loaded via getImage("...") to find out if it has an @2x variant, we can't do that via the existing getScaledInstance() method.  Also, if a developer programmatically develops a set of multi-res images, then getScaledInstance() is not the mechanism that should be used to supply those to drawImage().
> What did Apple provide beyond getImage()/drawImage() support for @2x file/URL resources?
> 			...jim

Sorry guys, to cause confusion. I really should have read the whole thread - I haven't (also see http://mail.openjdk.java.net/pipermail/macosx-port-dev/2013-November/006209.html). Apple didn't have any public APIs beyond the Toolkit.getImage(...); method. It loaded the appropriate image, i.e. a @2x version if available.

There wasn't anything else (not without hacking the private APIs -> http://blog.beatunes.com/2013/04/creating-retina-capable-images-with.html)

So - Jim - again sorry,


More information about the awt-dev mailing list