The Vcl. ImgList.
TCustomImageList. Overlay methodThe Description
Identifies an image in the list as an image that can be 2 as an overlay mask.
Use Overlay to assign an Overlay index to one of the images in the list. Once an image has an Overlay index, it can be 2 as an Overlay mask. An Overlay mask is an image drawn transparently over another image.
ImageIndex identifies the image that can act as an overlay mask.
Overlay is the Overlay index to assign to that image. It must be a value between 0 and 3 (inclusive). Note that this means the at most four images can be informs the as Overlay masks.
If successful, Overlay returns true.
To draw an overlay mask over an image or use the DrawOverlay method with the index of the overlay mask.
-- -- -- -- -- -- -- -- -- --
Only up to 4 images can be used for covering the mask, how to understand?