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.
Essentially, something like this:
myWidget.SaveImage("imageFile.png");
I'd prefer a PNG or JPEG, but a raw bitmap will do.