Just draw directly on a suitable control surface, that is, on the panel. Get the graphic context of the control and update it in the Paint event using the Invalidate () function. Every time you are invalid, Paint is called automatically. Here you want to put your drawing logic.
The best way to update it is to use DrawImageUnscaled (). The image itself is most quickly executed using the LockBits method, which is explained excellently here:
http://www.bobpowell.net/lockingbits.htm
Pedery
source share