Solved

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

Posted on 1998-10-23
3
358 Views
Last Modified: 2013-11-20
Hallo.

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

Thank you.
0
Comment
Question by:AxelSteinbach
  • 2
3 Comments
 
LVL 7

Expert Comment

by:psdavis
ID: 1323750
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
 

Author Comment

by:AxelSteinbach
ID: 1323751
My 24 bit source-image has a particular color. This color should not be shown after the blitting to a destination-image.
0
 
LVL 7

Accepted Solution

by:
psdavis earned 200 total points
ID: 1323752
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Separate files macro - Errors on larger data set 18 73
Prevent this page from creating additional dialogs. 3 725
no14 challenge 14 73
Making an alias 7 115
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question