Solved

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

Posted on 1998-10-23
3
350 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

12 Experts available now in Live!

Get 1:1 Help Now