DesktopUnscaledY()

Syntax

Result = DesktopUnscaledY(Value)
Description
Returns the unscaled value according to current display DPI on 'y' axis. This is mostly useful to calculate real pixel position independently of the display DPI.

Parameters

Value The value to use.

Return value

Returns the unscaled value according to current display DPI on 'y' axis. For example, on a display with a 125% DPI applied, a value of 125 will result to 100.

Remarks

The application needs to be compiled with the 'DPI Aware' switch to have this command returning scaled DPI value. If not, the result will be always be the same as 'Value' parameter.

Example

  Debug "Desktop DPI 'y' unscaled value of 125: " + DesktopUnscaledY(125)

See Also

DesktopResolutionX(), DesktopResolutionY(), DesktopScaledX(), DesktopScaledY(), DesktopUnscaledX()

Supported OS

All

<- DesktopUnscaledX() - Desktop Index - DesktopWidth() ->