How will resolution independence be handled in jdk8?
Sergey.Bylokhov at oracle.com
Tue Apr 23 10:03:29 PDT 2013
On 23.04.2013 19:05, Hendrik Schreiber wrote:
> Will we simply be able to call
> graphics.drawImage(img, x, y, w, h, obs);
> and if the image is twice the size of w/h (=4xarea) and a Retina display is present, the image is drawn with sub-pixel resolution? I.e. in effect not scaled, but simply drawn?
Yes, it should work in this way.
> If so, will there be a way to find out the scale factor, i.e. the factor between pixel based resolution and true display sub-pixel capability? To illustrate, for Retina this factor is 2x. After all, we need to know, what kind of images to load for a high resolution capable app.
Currently there is no such info, but it will be added. Therefore while
it is not implemented, any suggestions are welcome.
Best regards, Sergey.
More information about the macosx-port-dev