title: Saving Panel as an Image
body: <p>I'm doing this paint application. It's kind of simple. It consist of a panel where I will draw on and then finally I will save as JPG or BMP or PNG file.</p>
  
  <p>My application work perfectly but the problem I'm facing is that when I'm saving the output is not what drawn on the panel its black Image nothing just black.</p>
  
  <p>all my work is been saved as</p>
  
  <pre><code>Thepic = new Bitmap(panel1.ClientRectangle.Width, this.ClientRectangle.Height);
  </code></pre>
  
  <p>and on the mouse (down,up thing) I have</p>
  
  <pre><code>snapshot = (Bitmap)tempDraw.Clone();
  </code></pre>
  
  <p>and it saved the work normally but again the rsult is black Image not what the panel contain.</p>