Difference between revisions of "Lua:getScreenDPI"
Jump to navigation
Jump to search
m (Syntax Highlighting.) |
|||
| Line 11: | Line 11: | ||
===Examples=== | ===Examples=== | ||
| − | + | <syntaxhighlight lang="lua" line> | |
| − | < | ||
local dpi = getScreenDPI() | local dpi = getScreenDPI() | ||
print("Screen DPI: " .. dpi) | print("Screen DPI: " .. dpi) | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Latest revision as of 20:20, 25 June 2026
Returns the Dots/Pixels Per Inch of the screen.
Function Parameters[edit]
This function has no parameters.
Returns[edit]
integer — The screen DPI value.
Examples[edit]
1 local dpi = getScreenDPI()
2 print("Screen DPI: " .. dpi)