Compartir a través de


Imagelist.setOverlayImage(Int32, Int32) Method

Definition

Adds an image to the list of images to use as overlay masks.

public:
 virtual bool setOverlayImage(int _imageIdx, int _overlayIdx);
public virtual bool setOverlayImage (int _imageIdx, int _overlayIdx);
abstract member setOverlayImage : int * int -> bool
override this.setOverlayImage : int * int -> bool
Public Overridable Function setOverlayImage (_imageIdx As Integer, _overlayIdx As Integer) As Boolean

Parameters

_imageIdx
Int32

The one-based index of the overlay mask.

_overlayIdx
Int32

The one-based index of the overlay mask.

Returns

1 if the method is successful.

Remarks

The following example creates an image list that has three images and then sets the last image as an overlay mask.

Imagelist list = new Imagelist( 
    Imagelist::iconWidth(), 
    Imagelist::iconHeight() ); 
list.add(new Image(824)); // Image 0 
list.add(new Image(815)); // Image 1 
list.add(new Image(936)); //Image 2 
list.setOverlayImage (2,1);

Applies to