[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Provides multiple image resolutions in TCustomImageList.
Source position: imglist.pp line 224
type TCustomImageListResolutions = class(TObject) |
||
public |
||
constructor Create(); |
|
Constructor for the class instance. |
destructor Destroy; override; |
|
Destructor for the class instance. |
function FindBestToScaleFrom(); |
|
Finds the image resolution with the best size for scaling to the target width. |
procedure Delete(); |
|
Deletes the image resolution stored at the specified position in the container. |
procedure Clear; |
|
Clears all image resolutions stored in the container. |
property ImageLists []: TCustomImageListResolution; [r] |
|
Provides access to an image list which uses the specified image width. |
property Items []: TCustomImageListResolution; default; [r] |
|
Provides indexed access to existing image resolutions in the container. |
|
Number of image resolutions stored in the container. |
|
end; |
|
Provides multiple image resolutions in TCustomImageList. |
|
| | ||
TCustomImageListResolutions is a class used to implement support for multiple image sizes (or resolutions) in TCustomImageList. TCustomImageListResolutions maintains an internal list with TCustomImageListResolution class instances representing each of the image sizes (and the raw image data for the size) available in the TCustomImageList instance. In essence, it allows TCustomImageList to treat each image resolution as a distinct parallel image list.
The ImageLists property provides access to the image list for a specific image width (or resolution), and performs image scaling when needed. New image resolutions are dynamically created and added to the container when a size is requested that is not already present.
Use the Items property to access the TCustomImageListResolution class instances stored in the container. Use the Count property to determine the number of image resolutions stored in the container. Use the Clear and Delete methods to maintain image resolutions in the container.
TCustomImageListResolutions is used in the implementation of TCustomImageList.
|
Implements an image resolution (or size) used in TCustomImageList. |
|
|
Provides access to an image list which uses the specified image width. |
|
|
Provides indexed access to existing image resolutions in the container. |
|
|
Width of images in the default resolution for the image list. |
|
|
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. |
Lazarus Component Library (LCL) | Version 3.99-1b97b99691 (2024-09-01) | Home |