Lua:getScreenDPI
Jump to navigation
Jump to search
Returns the Dots/Pixels Per Inch of the screen.
Function Parameters
This function has no parameters.
Returns
integer — The screen DPI value.
Examples
local dpi = getScreenDPI()
print("Screen DPI: " .. dpi)