[Previous] [Contents] [Index] [Next]

snapshot

Capture a screen image

Syntax:

snapshot [-A widthxheight] [-f filename] [-o oxo]
         [-p printer_name] [-S i|n] [-s server] [-W rid]
         [-x x_pos] [-y y_pos]

Options:

-A widthxheight
Area (capture size).
-f filename
Output filename.
-o oxo
Origin.
-p printer_name
Printer name.
-S i|n
Specify initial window state (i - iconify, n - normal).
-s server
Use this server node or device name.
-W rid
Capture Region ID.
-x x_pos
Initial x_pos position of window.
-y y_pos
Initial y_pos position of window.

Description:

The snapshot utility captures portions of the Photon workspace and saves the image as a PostScript (.ps) file.

Snapshot

To take a snapshot of an image:

  1. Specify whether the snapshot image goes to a printer or to a file:
  2. Specify one of the following snapshot types and click Begin:

Switching consoles

When snapshot is running, you can switch consoles in the standard fashion (using the Console Selector or the Ctrl -Alt -1...9 keychords). The Snapshot dialog will follow between console switches.

However, once you click on a Snapshot Type button (Whole Screen, Selected Window, or User Defined Area) and click Begin, only the current console is available until you capture an image or cancel.

Examples:

Run using Photon server on node 4:

snapshot -s4

Or

snapshot -s//4/dev/photon

Run at initial position (10,10):

snapshot -x10 -y10

Grab the area of the screen whose origin lies at (50,50) and whose dimension is 100*100 then save it as a BMP Spool File in /src/photon/apps/print1.bmp:

snapshot -A 100*100 -o 50*50 -p "BMP Spool File" -f /src/photon/apps/print1.bmp
    

Environment variables:

The PWM_PRINTSCRN_APP lets you specify the application to start when the Print Scrn key is pressed. By default, the snapshot utility is started.


[Previous] [Contents] [Index] [Next]