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

# TCustomImageList.ResolutionForPPI

Gets a scaled resolution with the specified width, display density, and scaling factor.

## Declaration

Source position: imglist.pp line 418

`public property TCustomImageList.ResolutionForPPI[AImageWidth: Integer,APPI: Integer,ACanvasScaleFactor: Double] : TScaledImageListResolution read GetResolutionForPPI;`

## Description

ResolutionForPPI is a read-only property used to get an image list with scaled images suitable for the specified width, display density (PPI), and scaling factor.

AImageWidth is the width of the images used as the source for the resized images. AImageWidth determines the Resolution selected as the source image list.

APPI indicates the display density (pixels per inch) for the resized images.

ACanvasScaleFactor contains the value used to adjust the image sizes when Scaled is set to True. The value in ACanvasScaleFactor is not used when Scaled is set to False.

The return value contains the TScaledImageListResolution instance created using the requested values. It is constructed dynamically in GetResolutionForPPI (the read access specifier for the property).

## See also

TScaledImageListResolution |  | Implements a scaled image resolution (size).
TCustomImageList.Resolution |  | Provides indexed access to an image resolution with the specified image width.
TCustomImageList.Scaled |  | Controls whether image sizes are automatically scaled for different display density (Pixels per Inch) settings.
TCustomImageList.DrawForPPI |  | Renders an image to a canvas scaled to a specified display density.