application class : DpiScaleFactorY getter

Description

Returns the vertical conversion ratio of physical pixels and virtual pixels.

Syntax

instance.DpiScaleFactorY

Arguments

None.

Return value

ClassDescription
realThe vertical conversion ratio

Sample code

1:

application app;

2:

real scaleFactor = app.DpiScaleFactorY;

Notes

How to convert between physical pixels and logical pixels is follows.

physical pixels / DpiScaleFactorY = logical pixels

logical pixels * DpiScaleFactorY = physical pixels

Links for reference

None.

Copyright © Cooker All rights reserved.