Sign in Join
FPDoc Onlineexperiment

TScaledImageListResolution record

In unit ImgList

Implements a scaled image resolution (size).

Declaration

pascal
TScaledImageListResolution = record

Description

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

WidthpublicWidth of the images stored in the scaled image resolution.
HeightpublicHeight of the images stored in the scaled image resolution.
SizepublicSize of an image stored in the scaled resolution.
ResolutionpublicResolution used as the bases for scaled images.
CountpublicNumber of images stored in the scaled image list.
ValidpublicIndicates if the source resolution is assigned for the class instance.

Methods

CreatepublicAllocates a new record instance.
GetBitmappublicGets the scaled bitmap for the specified image.
DrawpublicDraws the scaled image to the specified canvas.
StretchDrawpublicDraws the scaled image sized to the target rectangle.
DrawOverlaypublicDraws an image with an overlay at the specified canvas position.

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