Solved

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

Posted on 1998-10-23
3
345 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 74
if loop error 4 77
Host to IP 7 73
not able to insert into temp table 68 150
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now