Copy link to clipboard
Copied
The new ScreenMode class introduced in AIR 31 l(Release Notes Flash Player 31 AIR 31​) let's you get the different modes of a connected screen as well as the current mode. This is great, however I would also like to get the current windows scaling factor.
Is this possible using the AIR api's?
Copy link to clipboard
Copied
Hi,
This can be achieved by the contentsScaleFactor property. Please refer Stage - Adobe ActionScript® 3 (AS3 ) API Reference for more information.
Thanks,
Amrita
Copy link to clipboard
Copied
Unfortunately, the contentScaleFactor only returns the scale of the primary monitor. If you have an example on how to get the scale factor for all individual monitors/screens that are connected to a Windows system, please let me know.
Copy link to clipboard
Copied
Hi,
On dragging the AIR application window to the secondary monitor which has a different DPI, the contentScaleFactor gives the updated scale value of the secondary monitor.
Thanks!
Copy link to clipboard
Copied
This is gives just the requestedDisplayResolution, not the real contentScaleFactor of the MSwindows screen property. How do I get the real value of the property?
Copy link to clipboard
Copied
Thanks, I'm glad there's a thread about this, because I had the same problem.
After I disabled Display Scaling for my app (through file properties in Windows), I can't seem to turn it back on, and therefore can't test the solution. Oh well, hopefully users won't see the problem in my app anymore.