RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TImageList Class

TImageList represents a collection of same-sized images, each of which can be referred to by its index.

Pascal
TImageList = class(TDragImageList);
C++
class TImageList : public TDragImageList;

Controls

Image lists are used to efficiently manage large sets of icons or bitmaps. All images in an image list are contained in a single, wide bitmap in screen device format. An image list may also include a monochrome bitmap that contains masks used to draw images transparently (icon style).  

The image list is capable of holding a large number of same sized images and retrieving them via their index within the range 0 to n - 1. The image list also has methods to facilitate storing, retrieving, and drawing of the stored images. 

To add images to an image list at design time, right click and choose Image List Editor

Note: Image lists depend on Comctl32.dll. If the system does not have the latest version installed, there may be problems getting images to appear.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!