[Dev-C++] Painting transparent areas
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: DXFX <vin...@ed...> - 2001-12-22 15:22:30
|
I have been searching through the Win32 API reference and still have no answer. Currently, I don't have an internet connection and I'm using a free dial-up service to my Email only. I need help from you guys... I've been testing values for the BitBlt function, and I haven't found any good solution. Ok now... here's the problem: How do I do a bitmap so that when it draws, it wouldn't paint a specific color -- giving it a bitmap transparency. If you guys still don't get what I'm saying, I've attached a gif image with this email. The one on the left is the original bitmap. It is basically a rectangle with curved corners, and a pink background(Max Red, Max Blue, 0 Green). The one on the right is what I want to accomplish when I'm going to paint it to another bitmap. that other bitmap will replace the pink background... Thus when I'm going to paint the original Bitmap, the pink areas/background would never be painted. Currently, Im using BitBlt to do this... but all I can do with that function is paint the whole bitmap. Im unable to exclude the pink areas of the bitmap in drawing. Can anyone PLEASE POINT ME to the right DIRECTION. Thanks to anyone DXFX Note: attached is "Sample1.gif", 1.24KB __________________________________ www.edsamail.com |