Click here to Skip to main content
15,910,303 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ Excel programing about formatting output??? Pin
André Kraak6-Oct-11 11:04
André Kraak6-Oct-11 11:04 
Questionc LANGUAGE PROGRAM Pin
Marium Malik6-Oct-11 5:09
Marium Malik6-Oct-11 5:09 
AnswerRe: c LANGUAGE PROGRAM Pin
Erudite_Eric6-Oct-11 5:29
Erudite_Eric6-Oct-11 5:29 
QuestionRe: c LANGUAGE PROGRAM Pin
David Crow6-Oct-11 9:34
David Crow6-Oct-11 9:34 
AnswerRe: c LANGUAGE PROGRAM Pin
Erudite_Eric6-Oct-11 22:13
Erudite_Eric6-Oct-11 22:13 
GeneralRe: c LANGUAGE PROGRAM Pin
Marium Malik19-Oct-11 4:33
Marium Malik19-Oct-11 4:33 
GeneralRe: c LANGUAGE PROGRAM Pin
Erudite_Eric20-Oct-11 7:49
Erudite_Eric20-Oct-11 7:49 
QuestionProblem with overlapping alphablended lines in GDI+ Pin
Code-o-mat6-Oct-11 0:56
Code-o-mat6-Oct-11 0:56 
Hey people!

Here's the problem: i have some code that draws a whole bunch of lines, nothing special, just the usual CDC::MoveTo, CDC::LineTo and CDC::DrawBezierTo calls. This works fine. But now the need arose to have these lines alphablended so the background they are drawn onto is visible. So i re-created the drawing code using Gdi+'s Graphics::DrawLine, Graphics::DrawBeziers specifying a Color with an alpha value for the pen that is used to draw the lines. The lines are all of the same color and have the same alpha but they can be really thick. And here comes the catch, of course, everywhere where the lines overlap they "draw over" each other creating a darker area on the picture which is not good. Any ideas how to avoid this?
I could try creating a bitmap, drawing the lines onto it, trying to render an alpha channel somehow and then alphablend this onto the original image but i wouldn't like to do this because it sounds a lot like wasting resources and not even sure how to render the alpha. Alternatively could try to fill the bitmap with a color dedicated for transparency, draw lines normally onto it and then blend it with a constant alpha + transparency. Still sounds ugly.
My second tought was to use BeginPath/EndPath/WidenPath to generate a path or region from the lines and then fill this blended onto the background but WidenPath for some reason produces holes in the lines.

Any ideas? Thanks in advance.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<

AnswerRe: Problem with overlapping alphablended lines in GDI+ Pin
PJ Arends7-Oct-11 9:55
professionalPJ Arends7-Oct-11 9:55 
GeneralRe: Problem with overlapping alphablended lines in GDI+ Pin
Code-o-mat7-Oct-11 10:25
Code-o-mat7-Oct-11 10:25 
QuestionShort cut key is not working properly Pin
Amrit Agr6-Oct-11 0:43
Amrit Agr6-Oct-11 0:43 
AnswerRe: Short cut key is not working properly Pin
Richard MacCutchan6-Oct-11 5:55
mveRichard MacCutchan6-Oct-11 5:55 
AnswerRe: Short cut key is not working properly Pin
PJ Arends7-Oct-11 11:31
professionalPJ Arends7-Oct-11 11:31 
QuestionResizing a WPF Window that is a child to a CView Pin
nadine123455-Oct-11 22:01
nadine123455-Oct-11 22:01 
AnswerRe: Resizing a WPF Window that is a child to a CView Pin
TheGreatAndPowerfulOz6-Oct-11 11:05
TheGreatAndPowerfulOz6-Oct-11 11:05 
GeneralRe: Resizing a WPF Window that is a child to a CView Pin
nadine123456-Oct-11 21:34
nadine123456-Oct-11 21:34 
GeneralRe: Resizing a WPF Window that is a child to a CView Pin
TheGreatAndPowerfulOz7-Oct-11 4:47
TheGreatAndPowerfulOz7-Oct-11 4:47 
GeneralRe: Resizing a WPF Window that is a child to a CView Pin
nadine123458-Oct-11 9:09
nadine123458-Oct-11 9:09 
AnswerRe: Resizing a WPF Window that is a child to a CView Pin
TheGreatAndPowerfulOz18-Oct-11 7:33
TheGreatAndPowerfulOz18-Oct-11 7:33 
QuestionHow do you const your references? Pin
User 5838525-Oct-11 18:35
User 5838525-Oct-11 18:35 
AnswerRe: How do you const your references? Pin
Stefan_Lang6-Oct-11 0:53
Stefan_Lang6-Oct-11 0:53 
GeneralRe: How do you const your references? Pin
TheGreatAndPowerfulOz6-Oct-11 5:55
TheGreatAndPowerfulOz6-Oct-11 5:55 
GeneralRe: How do you const your references? Pin
Stefan_Lang6-Oct-11 6:09
Stefan_Lang6-Oct-11 6:09 
GeneralRe: How do you const your references? Pin
TheGreatAndPowerfulOz6-Oct-11 6:37
TheGreatAndPowerfulOz6-Oct-11 6:37 
GeneralRe: How do you const your references? Pin
Stefan_Lang6-Oct-11 6:48
Stefan_Lang6-Oct-11 6:48 

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.