gra.screencapture.rect
Dump a rectangular subsection of the screen to an image file.
Plugin:
libgre-plugin-screencapture.so
Options:
x
The x coordinate of the top left corner of the rectangle (4s1)
y
The y coordinate of the top left corner of the rectangle (4s1)
w
The width of the rectangle (4s1)
h
The height of the rectangle (4s1)
filename
The filename of the image file to create. The directory path to the
filename must exist and the filename will be overwritten if it is. The
filename must end with either a .bmp extension to generate BMP formatted
images or .tga to generate TGA formatted images.