开发者

Drawing flicker free line

开发者 https://www.devze.com 2023-03-15 13:53 出处:网络
In delphi there was a ability to redraw a line in xor mode ,in this mode pen merged with backcolor and caused to hide th开发者_StackOverflow社区e line,and if we had many color in background the line r

In delphi there was a ability to redraw a line in xor mode ,in this mode pen merged with backcolor and caused to hide th开发者_StackOverflow社区e 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号