<AWT Dev> [OpenJDK 2D-Dev]  Review request for 8011059 [macosx] Make JDK demos look perfect on retina displays
james.graham at oracle.com
Thu Nov 7 12:30:58 PST 2013
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
On 11/7/13 2:46 AM, Hendrik Schreiber wrote:
>>> The @2x mechanism should be based on different API. I guess it would have to be internal-only for 8.0 and could be exposed to allow developers to call it and possibly to be a provider for it in JDK9...
> PLEASE, PLEASE don't make us wait until JDK9 for something that worked really well in Apple's JDK6.
More information about the awt-dev