screenshot?

In windows I used GDI+ to capture a region of the screen. Is there something similar for linux? I want to do

ScreenCapture(Top, Left, Width, Height);

and save it to a file (png or something).

What's the easiest way to do this?

Thanks,

Dave
Surely someone knows how to do this??
Hello,
I haven't personally done this, but there is a program, gnome-screenshot, that captures images of the desktop or a window. Its source code can be found at:

http://svn.gnome.org/viewvc/gnome-utils/trunk/gnome-screenshot/

Topic archived. No new replies allowed.