Sign in Join
FPDoc Onlineexperiment

ScaleY function

In unit Graphics

Resizes the specified vertical size from a given display density to the current screen PPI.

Declaration

pascal
function ScaleY(const SizeY: Integer; const FromDPI: Integer): Integer

Arguments

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.