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

TCustomImageList.HeightForWidth

Height used for images with the width specified width.

Declaration

Source position: imglist.pp line 407

public property TCustomImageList.HeightForWidth[AWidth: Integer] : Integer
  read GetHeightForWidth;

Description

HeightForWidth is an indexed read-only Integer property which returns the height used for images with the width specified width in AWidth. The read access specifier for the property uses the values in the Width and Height properties to determine the aspect ratio used for images in the default resolution.

The property value is set to the product of AWidth and the calculated aspect ratio. The property value is 0 (zero) when the Width property has not been assigned for the image list.

HeightForWidth is used in the implementation of the following classes and methods:

See also

TCustomImageList.Width

  

Width of images in the default resolution for the image list.

TCustomImageList.Height

  

Height of images in the default resolution for the image list.

TCustomImageList.HeightForPPI

  

Height for images at the specified display density.


Version 3.2 Generated 2024-02-25 Home