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

x
?
Solved

opacity ... in VC++

Posted on 2004-10-28
4
Medium Priority
?
356 Views
Last Modified: 2008-02-01

 Hi experts,

     I am adding a picture with transparent background to a canvas (in VC++) using the following lines :

     SelectObject(bufdc,ghost) ;
     BitBlt(mdc, x, y, 60, 120, bufdc, 0, 120, SRCAND) ;
     BitBlt(mdc, x, y, 60, 120, bufdc, 0, 0, SRCPAINT) ;
               
     Does anyone know how to change the opacity of the object (the ghost) itself ?

  many thanks !!!

 meow
0
Comment
Question by:meow00
[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
4 Comments
 
LVL 1

Accepted Solution

by:
cyberizen earned 1400 total points
ID: 12440975
Look for this method under MSDN SetLayeredWindowAttributes. Hope it helps
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

636 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