CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 1999
    Posts
    98

    Making a Bitmap Transparent

    Anybody know how to MAKE a bitmap transparent, not DRAW a transparent bitmap? Thanks!
    Last edited by nouser; April 18th, 2009 at 10:21 PM.

  2. #2
    Join Date
    Apr 1999
    Location
    Toronto, ON
    Posts
    713

    Re: Making a Bitmap Transparent

    if (IUnderstandYou() && IRememberIt())
    {
    set left bottom bit to color that has background
    }

    Dmitriy, MCSE

  3. #3
    Join Date
    Jul 1999
    Posts
    98

    Re: Making a Bitmap Transparent

    Do you know how I would do this? Do you have an example function that shows how to do this or could you make one? I don't understand. I'am kinda a newbie.
    Last edited by nouser; April 18th, 2009 at 10:21 PM.

  4. #4
    Join Date
    Apr 1999
    Location
    Toronto, ON
    Posts
    713

    Re: Making a Bitmap Transparent

    Sorry, not so easy. The idea was good for setting background color for icon.
    About transparent bitmap:
    There is an article in MSDN (Q79212). If you have not MSDN,
    send to [email protected]?subject=Q79212 e-mail
    and you will receive autoreplay with article.
    This article has example. If you have any questions I will back in 12 hours (We have 11 pm now)

    Dmitriy, MCSE

  5. #5
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Making a Bitmap Transparent

    Hi,

    you can't do that. The idea behind transparent graphics is that there is one color which is "declared" as transparent. The real transparency is done by the drawing algorithm, where this color is simply not painted.


    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured