Click here to Skip to main content
15,117,095 members
Home / Discussions / C / C++ / MFC

C / C++ / MFC

GeneralRe: Problem in windows7 Pin
David Crow16-Dec-10 5:16
MemberDavid Crow16-Dec-10 5:16 
GeneralRe: Problem in windows7 Pin
«_Superman_»16-Dec-10 8:05
professional«_Superman_»16-Dec-10 8:05 
GeneralRe: Problem in windows7 Pin
krmed16-Dec-10 8:06
Memberkrmed16-Dec-10 8:06 
QuestionHow to pass text file data from MFC line Graph? Pin
mathivanaan16-Dec-10 1:38
Membermathivanaan16-Dec-10 1:38 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Rajesh R Subramanian16-Dec-10 1:42
professionalRajesh R Subramanian16-Dec-10 1:42 
AnswerRe: How to pass text file data from MFC line Graph? Pin
Cedric Moonen16-Dec-10 2:00
MemberCedric Moonen16-Dec-10 2:00 
QuestionHow to save TransParent IMage after drawing on another image? Pin
002comp15-Dec-10 20:55
Member002comp15-Dec-10 20:55 
AnswerRe: How to save TransParent IMage after drawing on another image? Pin
Rozis16-Dec-10 12:59
MemberRozis16-Dec-10 12:59 
I hope i understand your questions clearly. Im not using GDIplus (but GDI) and Im not using your program language, but maybe this helps a little:

- to get transparency on the pixellevel every pixel in your bitmap must be 4 bytes (RGBA) and not 3 bytes (RGB). See MSDN for exact info. In the A byte (called alpha channel) you may set the transparency level between 0 and 255. You should use the winapi function Alphablend() (or the gdiplus equevalent) to copy the bitmap to the screen.

- One of the problems with transparent bitmaps is that when you put them on screen the transparency is visible but this information is lost (on the screen). Let me explain this: Suppose you want to fade in a bitmap. Then for every step you must first repaint the background (that what wad on the screen before the bitmap was painted on it) and then copy the transparent bitmap on it, decreasing transparency in every step. If you don't repaint the background first you will not get the desired result (but a transparent bitmap on a tranparent bitmap).

The screen has no transparency set (it is a RGB-surface) so saving it will result in a bitmap that only shows 'what was on screen'. Transparency is a property of a bitmap not of the screen that displays it (the screen shows the result only).

Hope this helps a bit...

Good luck,

GeneralRe: How to save TransParent IMage after drawing on another image? Pin
002comp16-Dec-10 19:15
Member002comp16-Dec-10 19:15 
QuestionSingleton Class Pin
pix_programmer15-Dec-10 19:00
Memberpix_programmer15-Dec-10 19:00 
AnswerRe: Singleton Class Pin
RaviRanjanKr15-Dec-10 20:08
professionalRaviRanjanKr15-Dec-10 20:08 
AnswerRe: Singleton Class Pin
Cedric Moonen15-Dec-10 21:23
MemberCedric Moonen15-Dec-10 21:23 
AnswerRe: Singleton Class Pin
Stefan_Lang15-Dec-10 23:41
mveStefan_Lang15-Dec-10 23:41 
GeneralRe: Singleton Class Pin
Sauro Viti16-Dec-10 0:24
professionalSauro Viti16-Dec-10 0:24 
QuestionCSV Pin
MsmVc15-Dec-10 18:33
MemberMsmVc15-Dec-10 18:33 
AnswerRe: CSV Pin
Alain Rist15-Dec-10 21:11
MemberAlain Rist15-Dec-10 21:11 
GeneralRe: CSV Pin
MsmVc15-Dec-10 21:19
MemberMsmVc15-Dec-10 21:19 
QuestionRe: CSV Pin
Alain Rist15-Dec-10 21:34
MemberAlain Rist15-Dec-10 21:34 
AnswerRe: CSV Pin
Cedric Moonen15-Dec-10 21:45
MemberCedric Moonen15-Dec-10 21:45 
GeneralRe: CSV Pin
Alain Rist15-Dec-10 21:51
MemberAlain Rist15-Dec-10 21:51 
GeneralRe: CSV Pin
Cedric Moonen15-Dec-10 21:56
MemberCedric Moonen15-Dec-10 21:56 
AnswerRe: CSV Pin
Cedric Moonen15-Dec-10 21:28
MemberCedric Moonen15-Dec-10 21:28 
GeneralRe: CSV Pin
MsmVc15-Dec-10 21:44
MemberMsmVc15-Dec-10 21:44 
QuestionSubclassing CHeaderCtrl in CListCtrl Pin
mesajflaviu15-Dec-10 9:54
Membermesajflaviu15-Dec-10 9:54 
AnswerRe: Subclassing CHeaderCtrl in CListCtrl Pin
Eugen Podsypalnikov15-Dec-10 10:09
MemberEugen Podsypalnikov15-Dec-10 10:09 

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.