Creates a composite third image out of two image objects and returns a reference to the new object.
[ picOverlay = ] Object.Overlay( vKey1, vKey2 )
The Overlay method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AImageList |
AImageList control |
|
picOverlay |
A picture object. |
|
|
vKey1 |
Val Variant |
An integer (Index property) or unique string (Name property) that specifies the image to be overlaid. |
|
vKey2 |
Val Variant |
An integer (Index property) or unique string (Name property) that specifies the image to be drawn over the object specified in vKey1. The color of the image that matches the MaskColor property is made transparent. If no color matches, the image is drawn opaquely over the other image. |
Use the Overlay method in conjunction with the MaskColor property to create a single image from two disparate images. The Overlay method imposes one bitmap over another to create a third, composite image. The MaskColor property determines which color of the overlaying image is transparent.
The following example will create a composite third image out of the fourth and sixth AImageListImage objects and return a reference to the new object:
picOverlay=imgl1.Overlay(3,5)
BackColor, Clear, InsertImage, MaskColor, MoveImage, RemoveImage