title: Capture image of window or widget in Mono
body: <p>I'm trying to capture an image of either the current window or a widget and save it to an image file. The problem is that I'm using Gtk# on Mono, so it needs to be a solution that'll work with that.</p>
  
  <p>Essentially, something like this:</p>
  
  <pre><code>myWidget.SaveImage("imageFile.png");
  </code></pre>
  
  <p>I'd prefer a PNG or JPEG, but a raw bitmap will do.</p>