Screen.ScaleFactor

From Xojo Documentation

Read-Only Property (As Double )
DoubleValue = aScreen.ScaleFactor

New in 2018r4

Supported on Desktop.

The ScaleFactor for the screen.

Note

A ScaleFactor of 1.0 indicates that each point refers to a single pixel on the screen. Higher values indicate a HiDPI display of some kind is being used.

Sample Code

Var scale As Double = Screen(0).ScaleFactor