|
-
February 7th, 2006, 09:30 AM
#22
Re: MFC : Make a bitmap with a transparant color
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|