Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC.NET vs VB.NET Pin
Maximilien5-Dec-02 3:39
Maximilien5-Dec-02 3:39 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 3:49
devvvy5-Dec-02 3:49 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 5:02
Daniel Turini5-Dec-02 5:02 
GeneralRe: VC.NET vs VB.NET Pin
Rickard Andersson205-Dec-02 3:58
Rickard Andersson205-Dec-02 3:58 
GeneralRe: VC.NET vs VB.NET Pin
Michael P Butler5-Dec-02 4:03
Michael P Butler5-Dec-02 4:03 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 4:10
devvvy5-Dec-02 4:10 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 4:29
Daniel Turini5-Dec-02 4:29 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 4:38
devvvy5-Dec-02 4:38 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 4:52
Daniel Turini5-Dec-02 4:52 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 4:55
devvvy5-Dec-02 4:55 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 4:59
Daniel Turini5-Dec-02 4:59 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 4:38
Daniel Turini5-Dec-02 4:38 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 5:13
devvvy5-Dec-02 5:13 
GeneralRe: VC.NET vs VB.NET Pin
Daniel Turini5-Dec-02 6:06
Daniel Turini5-Dec-02 6:06 
GeneralRe: VC.NET vs VB.NET Pin
Christian Graus5-Dec-02 9:37
protectorChristian Graus5-Dec-02 9:37 
GeneralRe: VC.NET vs VB.NET Pin
devvvy5-Dec-02 9:51
devvvy5-Dec-02 9:51 
GeneralRe: VC.NET vs VB.NET Pin
Christian Graus5-Dec-02 10:54
protectorChristian Graus5-Dec-02 10:54 
QuestionMDI Pointers? Pin
Dov Sherman5-Dec-02 2:04
Dov Sherman5-Dec-02 2:04 
AnswerRe: MDI Pointers? Pin
Roger Allen5-Dec-02 3:22
Roger Allen5-Dec-02 3:22 
GeneralRe: MDI Pointers? Pin
Dov Sherman5-Dec-02 3:31
Dov Sherman5-Dec-02 3:31 
GeneralRe: MDI Pointers? Pin
S O S5-Dec-02 4:04
S O S5-Dec-02 4:04 
GeneralGuidelines about how to move programatically transparent images over a background bitmap Pin
Joan M5-Dec-02 1:10
professionalJoan M5-Dec-02 1:10 
GeneralRe: Guidelines about how to move programatically transparent images over a background bitmap Pin
Paul M Watt5-Dec-02 7:01
mentorPaul M Watt5-Dec-02 7:01 
If you are only using windows NT or XP, then you will be able to use TransparentBlt, which works quite efficiently.

Otherwise you will need to resort to a process like this:

1) Blt your image to the destination surface with the SRCINVERT flag.
2) Blt your Mask image to the destination with the SRCAND flag.
3) Blt your image to the destination surface one more time with the SRCINVERT flag.

This process requires a monochormatic mask where the black pixels are transparent on your mask.

One other method is to create a region that represents the clipped area and select this as a clipping region when you are ready to paint. However it may be more trouble than it is worth to create a region for each image that needs to be painted transparently.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

QuestionIs upgrading to VC ++ 7 Worth it? Pin
Paul Evans5-Dec-02 0:43
Paul Evans5-Dec-02 0:43 
AnswerRe: Is upgrading to VC ++ 7 Worth it? Pin
Michael P Butler5-Dec-02 0:52
Michael P Butler5-Dec-02 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.