title: Working With System.Drawing.Region
body: <p>I've made a test <code>WindowForm</code> application that takes a snapshot of the window by it's boundaries. But I can't seem to give GetBounds() what it needs. He wants graphics but it already contains the bounds, I just want his point and size: </p>
  
  <pre><code>private void CaptureBtn_Click(object sender, EventArgs e)
  {
      Region region = GetRegionByHWnd(GetForegroundWindow());
  
      Rectangle rectangle = new Rectangle(
                                          region.GetBounds().Location,
                                          region.GetBounds().Size);
  
      CaptureImage(rectangle.Location, Point.Empty, rectangle.Size);
  }
  </code></pre>
  
  <p>Did that problem occur to anyone before, or knows how to fix it?</p>