I'm dealing with DIBs.

I'm using 'SetDIBitsToDevice' API to display DIBs.

But It doesn't handle with transparent color...

Do I have to convert it to DDB before display?
I used to use that way to skip transparent color.
But, I think... Converting DDB looks not efficient. :(

How can I display DIBs with skipping transparent color (without converting DDB)? :(

Thank you for reading!
Have a nice day! :)
Posted on 2002-08-20 03:10:09 by nyam
Use masks and BitBlt.
Posted on 2002-08-20 11:27:40 by comrade
comrade,

Thank you for your replying...

But, Can you display DIBs with 'BitBlt'?

As I mentioned, You should not convert DIB to DDB.
Posted on 2002-08-20 20:24:17 by nyam
Select the DIB into a Dc, Blt the Dc. Do the selection once and resuse the Dc when needed.

Also take a look at MaskBlt.
Posted on 2002-08-21 07:21:15 by Eóin