GDI+ And Redrawing  
Author Message
Sushisource





PostPosted: Visual C# General, GDI+ And Redrawing Top

Hello, I'm making a little app just for kicks, with the sole purpose of being visually pleasing, but I've come across a problem that has stumped me.

The traditional (control name)_Paint method is what I am currently using to make sure that the window in my app stays up to date. The problem is that in my app, multiple layers of opacity can come into effect, and the _Paint handler often will make an area too dark by drawing over it too many times, and will eliminate any underlying colors.

The only solution I can think of to my problem is storing an array filled with the info of each previous thing the user has drawn. But obviously, refreshing in this way would be massively inefficient. And it is already somewhat slow.

It's sort of hard to explain without the program, which I have hosted the source of here:
http://www.hide-link.com/


Visual C#1