title: Bitmap(Int32, Int32, PixelFormat) throws ArgumentException
body: <p>I am trying to get a part of a screenshot but unfortunately I am getting <code>ArgumentException</code> when I am creating <code>Bitmap</code>. Here's a code : </p>
  
  <pre><code>public Bitmap bp(int x, int y, int width, int height)
  {
     Bitmap bitmap = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
     using (Graphics g = Graphics.FromImage(bitmap))
     {
        g.CopyFromScreen(x, y, 0, 0, bitmap.Size, CopyPixelOperation.SourceCopy);
     }
     return bitmap;
  }
  </code></pre>
  
  <p>When it's trying to make bitmap it throws:</p>
  
  <blockquote>
    <p>ArgumentException. "Parameter isn't valid".</p>
  </blockquote>
  
  <p>Can any one help to handle this ?</p>
  
  <p>I Call this Function :</p>
  
  <pre><code>Bitmap ln = bp(Convert.ToInt32(textBox55.Text),     
   Convert.ToInt32(textBox56.Text), Convert.ToInt32(textBox59.Text) -  
   Convert.ToInt32(textBox55.Text), Convert.ToInt32(textBox56.Text) - 
   Convert.ToInt32(textBox60.Text));
  </code></pre>
  
  <p>I am getting Parameters from <code>TextBox</code></p>