How will resolution independence be handled in jdk8?
hs at tagtraum.com
Fri Apr 26 14:42:01 PDT 2013
On Apr 23, 2013, at 8:55 PM, Hendrik Schreiber wrote:
> Back to loading and drawing images.
> Apple supported the @2x hack. That is, one could load images using a resource name (e.g. "image") and the system would use automatically either "image.png" or "image at 2x.png" when drawing, depending on the current scale factor. Perhaps this kind of Image class that is backed by multiple resolution optimized Images and a corresponding loading mechanism is something nice to have, too. Mike Swingler can describe the mechanism probably much better...
BTW - something like this will be a necessity. Just think of images in JButtons. You have to be able to pass some image into the button, and the button needs to be able to correctly draw either a low or a high resolution version. Automatically. Because it is close to impossible to mess around with the actual drawing mechanism inside of the ButtonUI...
More information about the macosx-port-dev