Solved

opacity ... in VC++

Posted on 2004-10-28
342 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
Question by:meow00
    1 Comment
     
    LVL 1

    Accepted Solution

    by:
    Look for this method under MSDN SetLayeredWindowAttributes. Hope it helps
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
    C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    913 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

    17 Experts available now in Live!

    Get 1:1 Help Now