Home > Net >  C # Windows weight painting
C # Windows weight painting

Time:10-01

The small white confusion:
C # Windows weight before how to retain graphics drawings?
Use Invalidate can trigger Paint, but before graphics will all disappear, very upset,

CodePudding user response:

Every time before re-paint, to draw a picture of the painting before, such as straight line, rectangle, etc

CodePudding user response:

reference 1/f, autumn red fruit reply:
every time before re-paint, to draw a picture of the painting before, such as straight line, rectangle, etc.

This is too much trouble I just wanted to see if there are a little bit more simple method??

CodePudding user response:

Don't draw on the form, but to create a bitmap (bitmap), inside the bitmap picture
Form. Image=bitmap;

CodePudding user response:

https://bbs.csdn.net/topics/392725261
  •  Tags:  
  • C#
  • Related