ui.getScale
Description
Get the current system DPI scale factor.

Parameters
none

Return value
scale number

Example
ui.messageBox("Scale: " .. ui.getScale())

Comments
Return value is based on current system DPI scale. A scale of 100% will return 1.0, 125% will return 1.25 etc.

See also

Back
Generated on the 26 June 2024 at 22:01:29 (UK Time)