Sign in Join
FPDoc Onlineexperiment

TCustomImageListResolutions class

In unit ImgList

Provides multiple image resolutions in TCustomImageList.

Declaration

pascal
TCustomImageListResolutions = class(TObject)

Inheritance

  1. TCustomImageListResolutions
  2. TObject

Description

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.

See also

Properties

ImageListspublicProvides access to an image list which uses the specified image width.
ItemspublicProvides indexed access to existing image resolutions in the container.
CountpublicNumber of image resolutions stored in the container.

Methods

CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
FindBestToScaleFrompublicFinds the image resolution with the best size for scaling to the target width.
DeletepublicDeletes the image resolution stored at the specified position in the container.
ClearpublicClears all image resolutions stored in the container.

Inherited

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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