Announcement

Collapse
No announcement yet.

imagelist add masked problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steve Rossell
    replied
    I will log your requests.

    Leave a comment:


  • james klutho
    replied
    Thanks for your quick reply Steve. You got your reply in before I got my example attached. I see what overlays are used for now. I would like to make a suggestion that the help file explain this or maybe include your example in the help file.

    Thanks again Steve.

    Jim

    Leave a comment:


  • Steve Rossell
    replied
    Take a look at this example.
    Attached Files

    Leave a comment:


  • james klutho
    started a topic imagelist add masked problem

    imagelist add masked problem

    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

    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
    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
    Attached Files
    Last edited by james klutho; 25 Sep 2009, 09:42 AM.
Working...
X