Announcement

Collapse
No announcement yet.

Toolbar bitmaps need transparent bkgrnd

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

  • Toolbar bitmaps need transparent bkgrnd

    I'm creating a toolbar.bmp from 16x16 bitmaps created by someone else at work.
    The bitmaps have a black background. I used Paint and 256 color setting, selected an area and did a paste from with transparent background selected in paint to build the toolbar.bmp and they work fine except for the blackground. I don't have any paint experience and have used the fill brush to change to colors that are close to what I want but really just want the black to be transparent. Is there a setting I can use with the bucket fill to change the area to transparent bits?

    BOB MECHLER

  • #2
    If using an image list (code not shown) , see ImageList_AddMasked macro in your WinAPI reference.

    I am terrible with this masking stuff, but I know that's why this is there.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Yes, set the color you want transparent (usually dark grey - RGB(192,192,192)) and ImageList_Create/ImageList_AddMasked and TB_SETIMAGELIST. This creates toolbar bitmaps that blend the current Windows' color scheme.
      kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

      Comment


      • #4
        That did the trick!

        Thanks,

        Bob Mechler

        Comment

        Working...
        X