Simulation of CDC::MaskBlt(...) under Win95

Hallo.

How to simulate the function CDC::MaskBlt(...) under Win95 ???

Thank you.
AxelSteinbachAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
psdavisConnect With a Mentor Commented:
Ahhh, much easier then!  Too bad you're not in windows 98, they have included a TransparentBlt function to automatically do that exact function.

Take a look at ::LoadImage in the API.  There you are allowed to load a file from disk or from resource, and specify transparent colors directly during load.

Also look at the Microsoft support site (or on your MSCD) for drawing transparent bitmaps.  It's rather complicated, but all you should have to do is drop in their code.

If you are messing around with DIBS, then just parse through each pixel, changing the pixel that you want one at a time.

Good luck!

Phillip

0
 
psdavisCommented:
Hey, he believes me!

What exactly do you want to see when you mask your 24 bit image?  What are you trying to get?
0
 
AxelSteinbachAuthor Commented:
My 24 bit source-image has a particular color. This color should not be shown after the blitting to a destination-image.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.