How to do double bufferring on a picbox?VB.Net
-
i have a picbox which user will draw different kind of drawing on the picbox, i trying to find a way which when user draw the first drawing, i save the content of the picbox to a place, after user define the second drawing, i will copy the saved content back to the picbox to attach to the second drawing, so all the drawing will retained... someone suggested me use double buffering on the picbox to save the picbox into a bitmap file, but i am really a beginner in VB.Net, can someone provide me about the coding of double buffering on the picbox?? thanks very much for any help!!!
-
i have a picbox which user will draw different kind of drawing on the picbox, i trying to find a way which when user draw the first drawing, i save the content of the picbox to a place, after user define the second drawing, i will copy the saved content back to the picbox to attach to the second drawing, so all the drawing will retained... someone suggested me use double buffering on the picbox to save the picbox into a bitmap file, but i am really a beginner in VB.Net, can someone provide me about the coding of double buffering on the picbox?? thanks very much for any help!!!
sounds like RageInTheMachine9532's q . do this so u retain both images - no need 2 save 1st image: private sub picbox_paint(e....) .... handles paint if drawmode = 1 then 'first time user draws e.graphic.drawrWW() 'this is the first drawing picbox.invalide() 'refresh picbox end if if drawmode = 2 then 'this means user chose draws anaa shape e.graphic.drawWW() 'this is the first drawing e.graphic.drawXX() 'this is second drawing picbox.invalide() 'refresh picbox end if end sub :rose::rose: