vb.net - Need to draw to 800*800 pixel box on screen efficiently -


I need to attract 100 lines between 100 semi-random points in the 800x800 pixel square on the screen.

I'm using built-in drawals & amp; Drags the inside work into .NET, but my picture erases every type of colors.

So, I was probably thinking about drawing on an in-memory bitmap, but I'm not sure it's a good solution.

Not only this is a good idea, but it also has a name (Double buffering) make your drawing on the form-level bitmap, and then in the paint event of your form (actually it would be better to do this on the form with the picture box, and it will be used to paint the event) the graphics object's drive method Bitmap in your Picturebox using

A simple way is to simply draw your bitmap, draw it on it, and then set the bitmap as the image property of your picturebox. It will continue to automatically image the image once your image is repainted.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -