screenshot

Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities

Capture content from a display

Syntax:

screenshot [-display=display_id]
           [-file=output_file]
           [-size=widthxheight]
           

Runs on:

QNX OS

Options:

-display=display_id
Specify which display the window will appear on by using display_id. You can specify display_id as one of the following:
  • an integer that identifies the display
  • an ID string that identifies the name of the display (id_string)
Whether by integer or by string, the display that you specify using display_id must be one of the displays that you've configured in the display subsections of the winmgr section in your configuration file (e.g., graphics.conf).

If you don't have any display subsections configured, or if you don't specify the display option, then screenshot uses the default display.

-file=output_file
Specify the filepath of the screenshot. If this option isn't specified, then the output will be stored in screenshot.bmp.
-size=widthxheight
Set the size, using integer values for width and height, of the screenshot (default is fullscreen).

Description:

The screenshot utility is a command-line tool that's used to capture content from a display. Once the content is successfully captured, screenshot saves the captured content in bitmap format in the specified filepath.

To run the screenshot utility:

  1. Ensure that screen is running.
  2. Run screenshot from a shell.
Page updated: