I have had problems getting the IMAGELIST ADD MASKED command to work. I am using a standard 24 x 24 , 4 bit depth copy icon with a light gray background
The result is a black 24 x 24 square.
I even tried using the Windows Imagelist API with the same results. Anyone else had this problem? I am lost.
Jim
Code:
'-----make the imagelist and add the bitmap----------- GRAPHIC BITMAP LOAD "copy.bmp", 24, 24 TO ghBmp IMAGELIST NEW ICON 24, 24, 4, 1 TO hLst IMAGELIST ADD MASKED hLst,ghBmp,%LTGRAY TO result '-----show the image in the showscene routine----------- GRAPHIC CLEAR %RED GRAPHIC IMAGELIST (200,200), hLst, 1,0, %ILD_TRANSPARENT
I even tried using the Windows Imagelist API with the same results. Anyone else had this problem? I am lost.
Jim
Comment