Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-10-23
3
Medium Priority
?
361 Views
Last Modified: 2013-11-20
Hallo.

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

Thank you.
0
Comment
Question by:AxelSteinbach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

610 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