TScaledImageListResolution record
Implements a scaled image resolution (size).
Declaration
TScaledImageListResolution = recordDescription
TScaledImageListResolution is a record type that represents a
scaled image resolution created in
TCustomImageList.
TScaledImageListResolution contains images dynamically scaled from a source
image
Resolution using a scaling factor.
TScaledImageListResolution contains methods and properties that mirror those
available in TCustomImageListResolution. This allows
TCustomImageList to use the methods and properties in
TCustomImageListResolution when working with the dynamically scaled image
content. Methods like Draw, DrawOverlay, and
StretchDraw are redirected to the corresponding method in
Resolution.
TScaledImageListResolution is transient in nature; it is not stored as part of an image list or its static resolutions.
TScaledImageListResolution is used in the implementation of the
GetResolutionForPPI and DrawForPPI methods in
TCustomImageList.
See also
Properties
Width | public | Width of the images stored in the scaled image resolution. |
Height | public | Height of the images stored in the scaled image resolution. |
Size | public | Size of an image stored in the scaled resolution. |
Resolution | public | Resolution used as the bases for scaled images. |
Count | public | Number of images stored in the scaled image list. |
Valid | public | Indicates if the source resolution is assigned for the class instance. |
Methods
Create | public | Allocates a new record instance. |
GetBitmap | public | Gets the scaled bitmap for the specified image. |
Draw | public | Draws the scaled image to the specified canvas. |
StretchDraw | public | Draws the scaled image sized to the target rectangle. |
DrawOverlay | public | Draws an image with an overlay at the specified canvas position. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
