Method PhysicalScreen():getScaleFactor() Foundation

Returns the scale factor.

Syntax
:getScaleFactor() --> nScaleFactor
Return

A numeric value with the scale factor.

Description

The method :getScaleFactor() returns the scale factor set for a physical screen. The scale factor is used for converting between points and pixel units and defines the DPI (dots per Inch) used with the screen. A scale factor of 1.0 means that one point corresponds to one device pixel. In this case, the pixel resolution is roughly equivalent to 96 DPI.

Compatibility note: Xbase Part-based applications normally use a fixed unit system. On physical screens using a different scale factor (DPI), the operating system automatically scales the application UI to the user's preferred scale. For this reason, the value contained in :scaleFactor normally is 1.0.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.