Sign in Join
FPDoc Onlineexperiment

TCustomImageList.HeightForWidth property

Member of TCustomImageListpublicIn unit ImgList

Height used for images with the width specified width.

Declaration

pascal
property 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:

  • TCustomImageList.GetHeightForPPI
  • TCustomImageListResolutions.GetImageLists

See also

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