[Overview][Types][Classes][Procedures and functions][Index] |
Indicates if images are automatically scaled for missing resolutions.
Source position: imglist.pp line 421
public property TCustomImageList.Scaled : Boolean |
Scaled is a Boolean property that indicates if images are automatically scaled for missing resolutions requested in the image list. The default value for the property is False.
When Scaled contains True, images in the list are dynamically scaled to the required width for a given display density (PPI). If the resolution already exists in the image list, it is used to retrieve images. If it does not already exist, an existing resolution is used as the basis for scaling images to the required width. When Scaled contains False, dynamic scaling is not performed for image resolutions. Instead, the closest resolution that matches the desired width is used as the source for images.
Use the OnGetWidthForPPI event handler to perform image size overrides or substitution for a given display density (PPI).
Scaled is used in the implementation of the GetResolutionForPPI and GetWidthForPPI methods.
|
Gets a scaled resolution with the specified width, display density, and scaling factor. |
|
|
Image width needed for the specified display density. |
|
|
Event handler used to override the scaled width for a display density. |
|
|
Finds the image resolution which uses the specified image width. |
|
|
Provides indexed access to an image resolution with the specified image width. |
|
|
Provides access to the image resolutions (or sizes) used in the image lists. |