Thanks Hendrik, no apologies necessary.
I haven't been involved much in the MacOS port so my question was
actually a legitimate call for information and not meant to criticize
anyone's input. I actually searched for a developer page that mentioned
the MacOS port's retina handling and all I could find were references to
setting the flag in your plist to enable retina - I didn't even find an
official announcement that they would load the @2x for you, but I
assumed that they would...
...jim
On 11/7/13 12:41 PM, Hendrik Schreiber wrote:
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,
-hendrik