ScaleY function
Resizes the specified vertical size from a given display density to the current screen PPI.
Declaration
function ScaleY(const SizeY: Integer; const FromDPI: Integer): IntegerArguments
SizeY | Size value scaled in the routine. |
FromDPI | Original display density (Pixels per Inch). |
Function result
New vertical size after scaling.
Description
Multiplies the values in SizeY and the PixelsPerInchY
member in ScreenInfo, and divides the product by the value in
FromDPI. The return value is rounded to the nearest Integer value.
See also
- TScreenInfo
- MulDiv
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
