application class : DpiScaleFactorX getter

Description

Returns the horizontal conversion ratio of physical pixels and logical pixels.

Syntax

instance.DpiScaleFactorX

Arguments

None.

Return value

ClassDescription
realThe horizontal conversion ratio

Sample code

1:

application app;

2:

real scaleFactor = app.DpiScaleFactorX;

Notes

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

physical pixels / DpiScaleFactorX = logical pixels

logical pixels * DpiScaleFactorX = physical pixels

Links for reference

None.

Copyright © Cooker All rights reserved.