Lua:getScreenDPI

From Cheat Engine
Revision as of 20:20, 25 June 2026 by Leunsel (talk | contribs) (Syntax Highlighting.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API Reference

function getScreenDPI() : integer

Returns the Dots/Pixels Per Inch of the screen.

Function Parameters

This function has no parameters.

Returns

integer — The screen DPI value.

Examples

1 local dpi = getScreenDPI()
2 print("Screen DPI: " .. dpi)

Main Pages

Core Lua documentation entry points

Lua
Script Engine