I'm assuming your canvas is some kind of control or a Form. You need to set the DoubleBuffered property on this control/Form to True to prevent flicker. Also, don't delete the previous frame when rendering a new one. Simply draw the new frame over the old one.