Click here to Skip to main content
15,905,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Is upgrading to VC ++ 7 Worth it? Pin
Oliver Anhuth5-Dec-02 1:02
Oliver Anhuth5-Dec-02 1:02 
GeneralRe: Is upgrading to VC ++ 7 Worth it? Pin
Rickard Andersson205-Dec-02 2:04
Rickard Andersson205-Dec-02 2:04 
GeneralRe: Is upgrading to VC ++ 7 Worth it? Pin
happyboy5-Dec-02 3:04
happyboy5-Dec-02 3:04 
AnswerRe: Is upgrading to VC ++ 7 Worth it? Pin
Paul M Watt5-Dec-02 5:35
mentorPaul M Watt5-Dec-02 5:35 
GeneralFlip/Mirror Transparent Bitmap Pin
Kyudos5-Dec-02 0:29
Kyudos5-Dec-02 0:29 
GeneralRe: Flip/Mirror Transparent Bitmap Pin
Kyudos5-Dec-02 0:47
Kyudos5-Dec-02 0:47 
GeneralRe: Flip/Mirror Transparent Bitmap Pin
Kyudos5-Dec-02 1:26
Kyudos5-Dec-02 1:26 
GeneralTXT-File Pin
Sunnygirl5-Dec-02 0:03
Sunnygirl5-Dec-02 0:03 
GeneralRe: TXT-File Pin
viliam5-Dec-02 0:18
viliam5-Dec-02 0:18 
GeneralRe: TXT-File Pin
Sunnygirl5-Dec-02 1:53
Sunnygirl5-Dec-02 1:53 
GeneralRe: TXT-File Pin
Rickard Andersson205-Dec-02 2:06
Rickard Andersson205-Dec-02 2:06 
GeneralRe: TXT-File Pin
Sunnygirl5-Dec-02 2:55
Sunnygirl5-Dec-02 2:55 
GeneralRe: TXT-File Pin
Dov Sherman5-Dec-02 2:09
Dov Sherman5-Dec-02 2:09 
GeneralRe: TXT-File Pin
Sunnygirl5-Dec-02 2:56
Sunnygirl5-Dec-02 2:56 
GeneralRe: TXT-File Pin
Atlantys5-Dec-02 6:36
Atlantys5-Dec-02 6:36 

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.