TCustomImageList.HeightForPPI property
Height for images at the specified display density.
Declaration
property HeightForPPI[AImageWidth: Integer;APPI: Integer]: Integer read GetHeightForPPI;Description
HeightForPPI is an indexed read-only Integer property that
contains the image height used for images at the specified display density
(Pixels per Inch). HeightForPPI allows the image height to be calculated for
high density displays based on an initial image width.
AImageWidth is an Integer value that contains the initial image
width used in the calculation.
APPI is an Integer value that contains the display density (Pixels
per Inch) used in the calculation.
The image width for the requested display density is calculated by calling
GetWidthForPPI. The image resolutions in the list are searched for
the derived image width. If the resolution already exists, the Height
property in the resolution is used as the property value. If the resolution
is not found, the GetHeightForWidth method is used to get the
value for the property.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
