Sign in Join
FPDoc Onlineexperiment

TCustomImageList.SizeForPPI property

Member of TCustomImageListpublicIn unit ImgList

Size used for images with the specified image width at the given display density.

Declaration

pascal
property SizeForPPI[AImageWidth: Integer;APPI: Integer]: TSize read GetSizeForPPI;

Description

SizeForPPI is a read-only TSize property which contains the size used for images with the specified image width at the given display density.

AImageWidth is an Integer value that contains the image width to use as the basis for the calculated size.

APPI is an Integer value that contains the display density (Pixels per Inch) used for the calculated size.

The property value is a TSize type with the image width and height stored in the CX and CY members (respectively).

The image size is derived by calling GetWidthForPPI to determine the best candidate image resolution at the specified display density. GetResolution is called for the candidate resolution and its Height and Width properties are stored in the return value.

See also

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