Click to See Complete Forum and Search --> : Making a Bitmap Transparent


nouser
August 22nd, 1999, 09:13 PM
Anybody know how to MAKE a bitmap transparent, not DRAW a transparent bitmap? Thanks!

Dmitriy
August 22nd, 1999, 09:26 PM
if (IUnderstandYou() && IRememberIt())
{
set left bottom bit to color that has background
}

Dmitriy, MCSE

nouser
August 22nd, 1999, 09:37 PM
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.

Dmitriy
August 22nd, 1999, 10:27 PM
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 mshelp@microsoft.com?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

Martin Speiser
August 23rd, 1999, 03:20 AM
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