[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.HeightForPPI

Height for images at the specified display density.

Declaration

Source position: imglist.pp line 406

public property TCustomImageList.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

TCustomImageList.WidthForPPI

  

Image width needed for the specified display density (PPI).

TCustomImageList.HeightForWidth

  

Height used for images with the width specified width.


Version 3.2 Generated 2024-02-25 Home