int hMask = createMask (hBitmap, cx [0], cy [0]);
int hMask = createMask (hBitmap, cx [0], cy [0], background);
public void put (int index, Image image) {	int count = OS.ImageList_GetImageCount (handle);	if (!(0 <= index && index < count)) return;	if (image != null) {		int [] cx = new int [1], cy = new int [1];		OS.ImageList_GetIconSize (handle, cx, cy);		int hImage = image.handle;		switch (image.type) {			case SWT.BITMAP:				int hBitmap = copyBitmap (hImage, cx [0], cy [0]);				int hMask = createMask (hBitmap, cx [0], cy [0]);				OS.ImageList_Replace (handle, index, hBitmap, hMask);				OS.DeleteObject (hBitmap);				OS.DeleteObject (hMask);				break;			case SWT.ICON:				int hIcon = copyIcon (hImage, cx [0], cy [0]);				OS.ImageList_ReplaceIcon (handle, index, hIcon);				OS.DestroyIcon (hIcon);				break;		}	}	images [index] = image;}