Click here to Skip to main content
15,916,398 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: animated Layered Windows Pin
Mark Salsbery7-Oct-07 5:59
Mark Salsbery7-Oct-07 5:59 
GeneralRe: animated Layered Windows Pin
Delfistyaosani7-Oct-07 6:56
Delfistyaosani7-Oct-07 6:56 
QuestionRe: animated Layered Windows Pin
Mark Salsbery7-Oct-07 8:03
Mark Salsbery7-Oct-07 8:03 
AnswerRe: animated Layered Windows Pin
Delfistyaosani8-Oct-07 0:11
Delfistyaosani8-Oct-07 0:11 
GeneralRe: animated Layered Windows Pin
Gandalf_TheWhite8-Oct-07 0:53
professionalGandalf_TheWhite8-Oct-07 0:53 
GeneralRe: animated Layered Windows Pin
Pete O'Hanlon8-Oct-07 10:17
mvePete O'Hanlon8-Oct-07 10:17 
GeneralRe: animated Layered Windows Pin
Dave Kreskowiak8-Oct-07 10:52
mveDave Kreskowiak8-Oct-07 10:52 
GeneralRe: animated Layered Windows Pin
Mark Salsbery8-Oct-07 6:43
Mark Salsbery8-Oct-07 6:43 
Hmmm..  If you're using 32-bit DIBsection(s) for your bitmap(s), you shouldn't have
to worry about the background at all. 

If you use a BLENDFUNCTION like

   BLENDFUNCTION bf;
   bf.BlendOp = AC_SRC_OVER;
   bf.BlendFlags = 0;
   bf.SourceConstantAlpha = 0xFF;
   bf.AlphaFormat = AC_SRC_ALPHA;

and specify the ULW_ALPHA flag when calling UpdateLayeredWindow()
then the per-pixel alpha values in the DIBSection will control all the blending.

Is that what you're looking for or do you need to do special blending with the
background?

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: animated Layered Windows Pin
Delfistyaosani12-Oct-07 7:44
Delfistyaosani12-Oct-07 7:44 
QuestionWhere is the first data location in Monochrome BMP image? Pin
Mohammad Khodaea7-Oct-07 2:02
Mohammad Khodaea7-Oct-07 2:02 
AnswerRe: Where is the first data location in Monochrome BMP image? Pin
Mark Salsbery7-Oct-07 5:52
Mark Salsbery7-Oct-07 5:52 
QuestionI need help or a answer plz Pin
MMaines20055-Oct-07 16:39
MMaines20055-Oct-07 16:39 
QuestionNew OpenSceneGraph version release Pin
El Corazon4-Oct-07 3:21
El Corazon4-Oct-07 3:21 
QuestionCreate a 4-bit Bitmap Pin
Mohammad Khodaea1-Oct-07 1:43
Mohammad Khodaea1-Oct-07 1:43 
AnswerRe: Create a 4-bit Bitmap Pin
Dan Neely1-Oct-07 2:16
Dan Neely1-Oct-07 2:16 
AnswerRe: Create a 4-bit Bitmap Pin
El Corazon1-Oct-07 7:04
El Corazon1-Oct-07 7:04 
QuestionImage Processing Application - help required Pin
sunny7430-Sep-07 0:47
sunny7430-Sep-07 0:47 
QuestionDX/OGL scrollable canvas Pin
Stevie26-Sep-07 0:03
Stevie26-Sep-07 0:03 
AnswerRe: DX/OGL scrollable canvas Pin
El Corazon26-Sep-07 5:43
El Corazon26-Sep-07 5:43 
QuestionOpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 4:07
Xpnctoc22-Sep-07 4:07 
AnswerRe: OpenGL with C++/CLI framerate issue Pin
codemunkeh22-Sep-07 5:36
codemunkeh22-Sep-07 5:36 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 7:26
Xpnctoc22-Sep-07 7:26 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
codemunkeh22-Sep-07 11:59
codemunkeh22-Sep-07 11:59 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 15:26
Xpnctoc22-Sep-07 15:26 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
El Corazon24-Sep-07 7:45
El Corazon24-Sep-07 7:45 

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.