Get screen DPI
Requires Windows 8.1 or later, OS X 10.7 or later.
##Platform
carbon | cocoa | win32 | win64 |
---|---|---|---|
๐ | ๐ | ๐ | ๐ |
// --- DPI
GET_SCREEN_DPI
GET SCREEN DPI ($dpi_x;$dpi_y)
//12in MacBook Retina
//282, 282 (1440 x 900)
//250.999984741211, 251.000015258789 default (1280 x 800)
//200.999984741211, 201.000015258789 (1024 x 640)
//226.000015258789, 226.000015258789 (1152 x 7620)
//192, 192 VMWARE FUSION, Windows 10 (2560 x 1600, custom zoom rate)
You can also pass an optional screen number in $3.