DeveloperX
DeveloperX

Reputation: 4683

Drawing flicker free line

In delphi there was a ability to redraw a line in xor mode ,in this mode pen merged with backcolor and caused to hide the line,and if we had many color in background the line redrew with that color,how can i do same thing in c#, i don't wanna redraw line with backcolor again to hide line also i should say i want to draw line in panel mousemove event to connect one rectangle shape to another

Upvotes: 1

Views: 675

Answers (1)

LarsTech
LarsTech

Reputation: 81610

In the .net world, you basically redraw the backcolor and redraw your line. You can use DoubleBuffering to help minimize the flickering.

If you are dead set on trying to go old school, look into the SetRop2 api call.

Upvotes: 1

Related Questions