Home Cooker Classes Others Rice
Classes  >  envi  >  DpiScaleFactorX
envi class : DpiScaleFactorX getter

Description

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

Syntax

enviInstance.DpiScaleFactorX

Arguments

None

Return value

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

Sample code

1:

envi en = new envi();

2:

real scaleFactor = en.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 © Rice All rights reserved.