title: Convert the image in a PictureBox into a bitmap
body: <p>I have used the following code to convert the image in a PictureBox into a Bitmap:</p>
  
  <pre><code>bmp = (Bitmap)pictureBox2.Image;
  </code></pre>
  
  <p>But I am getting the result as <code>bmp = null</code>. Can anyone tell me how I do this?</p>