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

Description

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

Syntax

enviInstance.DpiScaleFactorY

Arguments

None

Return value

ClassDescription
realThe vertical conversion ratio of physicals pixel and virtual pixels.

Sample code

1:

envi en = new envi();

2:

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