Home Notices Documents Classes Download Others Rice
Classes  >  window  >  DpiScaleFactorX
window class : DpiScaleFactorX getter

Description

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

Syntax

windowInstance.DpiScaleFactorX

Arguments

None

Return value

ClassDescription
realThe horizontal conversion ratio of physical pixels and logical pixels.

Sample code

1:

window w = new window();

2:

real scaleFactor = w.DpiScaleFactorX;

Notes

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

physical pixels / DpiScaleFactorX = logical pixels

logical pixels * DpiScaleFactorX = physical pixels


This getter was added in the Ver 1.0.0.1.

Links for reference

None

Copyright © Rice All rights reserved.