Nvrmnd, I figured it out.  But for those of you who are interested in how
you do that, there is a Gdk.Global class that has a property called
DefaultRootWindow.

So I think the way to take a screenshot is to do something like this:

int width = 0;
int height = 0;

// get the root window
Gdk.Window root = Gdk.Global.DefaultRootWindow;

// get its width and height
root.GetSize(out width, out height);

// create a new pixbuf from the root window
Gdk.GdkPixbuf screenshot = Gdk.GdkPixbuf.CreateFromDrawable(root,
root.Colormap, 0, 0, 0, 0, width, height);

Dave
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to