Lua:getScreenDPI
Jump to navigation
Jump to search
<> Lua API Reference
function getScreenDPI() : integer
Returns the Dots/Pixels Per Inch of the screen.
This function has no parameters.
integer — The screen DPI value.
1 local dpi = getScreenDPI()
2 print("Screen DPI: " .. dpi)
Main Pages
Core Lua documentation entry points
◆ Lua
◆ Script Engine