Scaling physical/virtual display size

 setGlobalScaleFactor description says 


 Sets a global scale factor to be used for all desktop windows.
 >>>     Setting this will also scale the monitor sizes that are returned by getDisplays().

 

Is there away to get the real physical number of pixels, independent from scale-factor?

Because, i want to set the scale factor that the virtual width is 400 px, so in need the physical size.

Also how is display rotating (90 degrees?) is handled, will full-screen-windows automatic re-sized to fit, i remember on android (with scale factor >1) it won't be re-sized.

 

 

 

 

 

Yes, the display also tells you its DPI