SYNTAX

    grabscreen [options] [<file_name>]


OPTIONS

-h (--help) bool

Display help.

-f (--format) enum

The required output format; defaults to 'jpeg'. 'raw' is the format produced by CFbsBitmap::Save. [jpeg, gif, bmp, png, raw]

-r (--rect) int

The required rectangle to capture, specified as four integers corresponding to top left x, top left y, bottom right x and bottom right y. For example, --rect 10,15,50,65. Can be specified more than once.

-s (--screen) int

The required screen to capture from. Defaults to zero.

-q (--quality) int

The desired image quality. For 'jpeg', a value in the range 0-100.

-g (--greyscale) bool

Encode the screen as greyscale rather than colour, for a smaller file size. Supported for 'jpeg' and 'png'.


ARGUMENTS

[<file_name>]

The name of the bitmap file write. If not specified, writes to STDOUT. Must be specified when using raw format. [filename]


DESCRIPTION

Creates a bitmap file of the current contents of the screen.

Creates a bitmap file (by default in JPEG format) of the current contents of the screen. Only operates in graphical environments.


COPYRIGHT

Copyright (c) 2008-2010 Accenture. All rights reserved.