Sign in Join
FPDoc Onlineexperiment

TCustomImageList.GetResolution function

Member of TCustomImageListprotectedIn unit ImgList

Gets the value for the indexed Resolution property.

Declaration

pascal
function GetResolution(AImageWidth: Integer)
: TCustomImageListResolution

Arguments

AImageWidth

Image width for the requested resolution.

Function result

Value for the Resolution property.

Description

GetResolution is a TCustomImageListResolution function used to get the image resolution which uses the image width specified in AImageWidth. When AImageWidth contains 0 ( zero) or a negative value, the value in the Width property is used in the argument.

GetResolution uses the internal TCustomImageListResolutions member in the class to access its ImageLists property. If an image list using the request image width does not exist, it is created and populated by copying the images from the best candidate resolution.

GetResolution is used as the read access specifier for the indexed Resolution property.

See also

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