Call Graphics.Clear(Color.White)before drawing a bitmap. If you don't already have an instance System.Drawing.Graphicsfor your bitmap, here's how to get it:
Graphics g = Graphics.FromImage(bitmap);
Clear bitmap:
g.Clear(Color.White);
And of course, don't forget to call Dispose()when you 're done with the graphics.
g.Dispose();
source
share