Click here to Skip to main content
15,892,809 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: OpenGL, DirectX, WPF ?? Pin
El Corazon26-Jun-07 5:47
El Corazon26-Jun-07 5:47 
QuestionZooming the line in OpenGL Pin
a_david12320-Jun-07 23:19
a_david12320-Jun-07 23:19 
QuestionHow to AddAlpha Values ?? Pin
SandipG 20-Jun-07 18:22
SandipG 20-Jun-07 18:22 
QuestionRe: How to AddAlpha Values ?? Pin
Mark Salsbery21-Jun-07 6:59
Mark Salsbery21-Jun-07 6:59 
AnswerRe: How to AddAlpha Values ?? Pin
SandipG 21-Jun-07 18:22
SandipG 21-Jun-07 18:22 
GeneralRe: How to AddAlpha Values ?? Pin
Mark Salsbery22-Jun-07 5:37
Mark Salsbery22-Jun-07 5:37 
GeneralRe: How to AddAlpha Values ?? Pin
SandipG 24-Jun-07 19:47
SandipG 24-Jun-07 19:47 
GeneralRe: How to AddAlpha Values ?? [modified] Pin
Mark Salsbery25-Jun-07 6:28
Mark Salsbery25-Jun-07 6:28 
With DrawImage(), on the destination Graphics...

SetCompositingMode(CompositingModeSourceCopy) will cause the drawn image to replace whatever was
in the destination image.

SetCompositingMode(CompositingModeSourceOver) will cause the drawn image to be blended with
whatever was in the destination image (the resulting alpha values are not always set to 255).

You should get the same results as with a pen and a brush. A bitmap filled with values with alpha
set to 0 drawn on an image with alpha set to, say, 0x80, will leave the destination alpha 80.
That matches your replace 0s with the first column alpha value, just like with a brush or pen.

Regardless, I guess my point was that to get the results you want with the alpha channels, I
don't believe the APIs are going to do it.

Even though you were looking to avoid it, LockBits/UnlockBits makes it relatively trivial to loop
through the images and combine them yourself.

Mark

-- modified at 13:09 Monday 25th June, 2007

"Go that way, really fast. If something gets in your way, turn."

QuestionImage Warp Function needed. Pin
SandipG 20-Jun-07 2:02
SandipG 20-Jun-07 2:02 
AnswerRe: Image Warp Function needed. Pin
Force Code20-Jun-07 6:39
Force Code20-Jun-07 6:39 
GeneralRe: Image Warp Function needed. Pin
SandipG 20-Jun-07 18:09
SandipG 20-Jun-07 18:09 
QuestionIntelligent Connectors Pin
whatitis17-Jun-07 19:12
whatitis17-Jun-07 19:12 
AnswerRe: Intelligent Connectors Pin
Tim Craig18-Jun-07 18:16
Tim Craig18-Jun-07 18:16 
GeneralRe: Intelligent Connectors Pin
whatitis18-Jun-07 18:39
whatitis18-Jun-07 18:39 
QuestionIntelligent Connectors Pin
whatitis17-Jun-07 19:12
whatitis17-Jun-07 19:12 
QuestionIDirectDrawSurface7::Blt function does not work with secondary screen [modified] Pin
raytracingx17-Jun-07 16:36
raytracingx17-Jun-07 16:36 
QuestionGDI+ How to limit number of PathPoints in GraphicsPath [modified] Pin
shipstech15-Jun-07 7:49
shipstech15-Jun-07 7:49 
QuestionInner and Outer Bevel Effects. Pin
Sameerkumar Namdeo14-Jun-07 23:38
Sameerkumar Namdeo14-Jun-07 23:38 
QuestionAnti-Aliasing routine needed Pin
Force Code14-Jun-07 13:39
Force Code14-Jun-07 13:39 
AnswerRe: Anti-Aliasing routine needed Pin
Christian Graus14-Jun-07 14:09
protectorChristian Graus14-Jun-07 14:09 
GeneralRe: Anti-Aliasing routine needed Pin
Force Code14-Jun-07 14:30
Force Code14-Jun-07 14:30 
GeneralRe: Anti-Aliasing routine needed Pin
Christian Graus14-Jun-07 18:05
protectorChristian Graus14-Jun-07 18:05 
GeneralRe: Anti-Aliasing routine needed Pin
Force Code15-Jun-07 1:52
Force Code15-Jun-07 1:52 
GeneralRe: Anti-Aliasing routine needed Pin
Force Code15-Jun-07 5:17
Force Code15-Jun-07 5:17 
GeneralRe: Anti-Aliasing routine needed [modified] Pin
Force Code20-Jun-07 6:03
Force Code20-Jun-07 6:03 

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.