DesktopResolutionX()

Syntax

Result.d = DesktopResolutionX()
Description
Returns the desktop DPI resolution factor on the 'x' axis.

Parameters

None.

Return value

Returns the desktop DPI resolution factor on the 'x' axis. If the value is '1', then no DPI factor has been applied to the display on the 'x' axis. If the value is '1.25', a 125% factor has been applied to the display on the 'x' axis.

Remarks

The application needs to be compiled with the 'DPI Aware' switch to have this command returning real DPI resolution factor. If not, the result will be always be '1'.

Example

  Debug "Desktop DPI 'x' factor: " + DesktopResolutionX()

See Also

DesktopResolutionY(), DesktopScaledX(), DesktopScaledY(), DesktopUnscaledX(), DesktopUnscaledY()

Supported OS

All

<- DesktopName() - Desktop Index - DesktopResolutionY() ->