Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing variable from one file to another Pin
Stan Shannon9-Nov-01 6:45
Stan Shannon9-Nov-01 6:45 
QuestionEject CDROM in W98??? Pin
Jon Hulatt9-Nov-01 1:44
Jon Hulatt9-Nov-01 1:44 
AnswerRe: Eject CDROM in W98??? Pin
Tomasz Sowinski9-Nov-01 1:58
Tomasz Sowinski9-Nov-01 1:58 
AnswerRe: Eject CDROM in W98??? Pin
Carlos Antollini9-Nov-01 2:40
Carlos Antollini9-Nov-01 2:40 
AnswerRe: Check this ;) Pin
Masaaki Onishi9-Nov-01 4:17
Masaaki Onishi9-Nov-01 4:17 
GeneralRe: Check this ;) Pin
Alex Lewandowski9-Nov-01 4:40
Alex Lewandowski9-Nov-01 4:40 
GeneralRe: Ty, but... Pin
Masaaki Onishi9-Nov-01 5:23
Masaaki Onishi9-Nov-01 5:23 
GeneralWhich is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 1:32
Chambers9-Nov-01 1:32 
Hi all, I have finally managed to get a TransparentBlt function going in my program, the trouble is I`m finding it is too slow for what I need it to do (especially on larger images, with multiple layers). I am using a MDI app which supports multi layer bitmaps(hence the need for transparency). The OnDraw function is called every time I re-size the window etc. and so it ends up using blt many many times. So basically I wondered if :

1. Alpha Blend was faster?
2. Alpha Blend is capable of simply ommitting to change the color of a pixel where that pixel is the transparent color?

I have only briefly looked through the alpha blend code, and it seems to merely blend two bitmaps together, thus creating a kind of duo-transparency. This isn`t particularly what I want, I just need to get rid of the main background colour of the foreground bitmaps. Any ideas on perhaps how I could speed up the process would be greatly received.
Thankyou all.

Alan.Hmmm | :|

"When I left you I was but the learner, now I am the Master" - Darth VaderMad | :mad:
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 1:54
Tomasz Sowinski9-Nov-01 1:54 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 2:25
Chambers9-Nov-01 2:25 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 2:36
Tomasz Sowinski9-Nov-01 2:36 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 2:39
Chambers9-Nov-01 2:39 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Tomasz Sowinski9-Nov-01 2:43
Tomasz Sowinski9-Nov-01 2:43 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers9-Nov-01 4:45
Chambers9-Nov-01 4:45 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Christian Graus9-Nov-01 9:59
protectorChristian Graus9-Nov-01 9:59 
GeneralRe: Which is faster TransparentBlt or AlphaBlend Pin
Chambers13-Nov-01 1:32
Chambers13-Nov-01 1:32 
Generalabout Registry Pin
Maer7279-Nov-01 1:28
Maer7279-Nov-01 1:28 
GeneralRe: about Registry Pin
Michael P Butler9-Nov-01 1:31
Michael P Butler9-Nov-01 1:31 
GeneralRe: about Registry Pin
Maer7279-Nov-01 1:44
Maer7279-Nov-01 1:44 
GeneralRe: about Registry Pin
Michael P Butler9-Nov-01 1:50
Michael P Butler9-Nov-01 1:50 
GeneralRe: about Registry Pin
Maer7279-Nov-01 18:28
Maer7279-Nov-01 18:28 
GeneralRe: about Registry Pin
Nish Nishant9-Nov-01 4:25
sitebuilderNish Nishant9-Nov-01 4:25 
GeneralRe: about Registry Pin
Maer7279-Nov-01 18:25
Maer7279-Nov-01 18:25 
GeneralCListCtrl window disappears?! Pin
Tommy H D Svensson8-Nov-01 22:57
Tommy H D Svensson8-Nov-01 22:57 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski8-Nov-01 23:30
Tomasz Sowinski8-Nov-01 23:30 

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.