[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.FindResolution

Finds the image resolution which uses the specified image width.

Declaration

Source position: imglist.pp line 398

public function TCustomImageList.FindResolution(

  AImageWidth: Integer;

  out AResolution: TCustomImageListResolution

):Boolean;

Arguments

AImageWidth

  

Image width for the resolution requested in the method.

AResolution

  

Image resolution class located in the method.

Function result

True when an image resolution using the specified width is found.

Description

FindResolution is a Boolean function used to find the image resolution with the image width specified in AImageWidth.

AResolution is a TCustomImageListResolution output parameter used to return the image resolution using the specified image width. AResolution contains Nil when the image width is not used in the resolutions for the image list.

FindResolution calls the Find method for the internal TCustomImageListResolutions container. The return value is True when an image resolution using the specified image width is found in the resolutions for the image list. The ResolutionByIndex property is used to get the class instance for AResolution when the return value is True.

FindResolution is used in the implementation of the Replace, ReplaceMasked, ReplaceSlice, and ReplaceSliceCentered methods.

See also

TCustomImageListResolution

  

Implements an image resolution (or size) used in TCustomImageList.

TCustomImageList.ResolutionByIndex

  

Provides access to an image resolution by its ordinal position in the image list.

TCustomImageList.Replace

  

Replaces an image at the specified position with the given bitmap.

TCustomImageList.ReplaceMasked

  

Replaces the image at the specified position with a masked image.

TCustomImageList.ReplaceSlice

  

Replace an image at the specified position with a slice from the specified image.

TCustomImageList.ReplaceSliceCentered

  

Replaces the image at the specified position from image data stored as adjacent columns and rows.


Version 3.2 Generated 2024-02-25 Home