CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 36

Threaded View

  1. #22
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,867

    Re: MFC : Make a bitmap with a transparant color

    Quote Originally Posted by FireJocker
    @John E :

    In your code, where is get pixel color which replace the transparent one ?
    In my original code, that colour is passed as a parameter to "DrawTransparentButmap(...) - i.e.

    Code:
    DrawTransparentBitmap(HDC hdc, HBITMAP hBitmap, short xStart, short yStart, COLORREF kTransparentColour, bool bAssume100Green);
    However, I noticed that you've removed that parameter in your implementation. In fact, I can't tell from your code whether you're using a different strategy so I can't guess at what you're doing wrong. However, my code does work. I'm using it myself.
    Last edited by John E; February 7th, 2006 at 09:33 AM.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

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