Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: viewercanvasprintmanager - Constructor Up: viewer - Module Previous: viewercanvasmanager.restoreoptions - Function


viewercanvasprintmanager - Tool



Package display
Module viewer


Postscript file available

Tool for managing the printing of canvases of Viewerdisplaypanel tools

include "viewer.g"

Constructors
viewercanvasprintmanager Create a Viewercanvasprintmanager tool
Functions
done Close down (destroy) this Viewercanvasprintmanager tool
gui Create a new graphical user interface for this tool
type Return the type of this tool
viewer Return the Viewer tool which owns this tool
writeps Write a PostScript file
writexpm Write an X11 Pixmap file



Description

This tool provides services to produce copies of the drawing canvases of Viewerdisplaypanel tools. PostScript and bitmap output is available at present.


Graphical User Interface


This tool controls two forms of hardcopy output: PostScript for printing, and X-Windows pixmap format which can be easily converted to GIF, JPEG or other bitmap formats. To initiate printing of what is visible on the Viewerdisplaypanel tool simply press the Print... button at the bottom of the window, or select Print manager... from the File menu. This will bring up the GUI for this tool which allows you to set some basic output parameters, most of which are only important for PostScript output (as indicated by the [PS] prefix:

  • Output file

    This can be left <unset>, and the Viewer will automatically create a unique filename for your output. Otherwise, just type in a specific name for your output file.

  • [PS] Output media

    You may select to print to A4 or US Letter paper.

  • [PS] Orientation

    Selection from portrait or landscape to orient the output on the selected paper.

  • [PS] Resolution

    You may choose the resolution of your output here. Bear in mind that the size of the output file for raster images will generally grow as the square of this number, and likewise the speed with which the hardcopy will be generated and printed. For test output, generally leave the resolution quite low, and only increase it to your printer resolution for final hardcopy output. This setting enables you to tune the output to the exact resolution of your hardcopy device.

  • [PS] Magnification

    You can scale your output by any factor between 0 and 1.

  • [PS] Write EPS format?

    Set this option to True if you want encapsulated PostScript output.

Once you have filled in the desired options, you need to hit one of three buttons at the bottom of the Print manager GUI:

  • Save XPM

    This button will write an X-Windows Pixmap copy of the Viewerdisplaypanel tool contents to a file on disk. The output will be an exact copy of what is displayed on-screen, and then a utility like 'xv' can be used to convert the output file to a GIF file, or a JPEG file, or whatever takes your fancy.

  • Save PS

    This button will write a PostScript file which aims to duplicate what is seen on-screen in a higher-resolution mode suitable for printing. Every attempt is made to preserve the aspect ratio of the on-screen display.

  • Print

    This button will first write a PostScript file as if the Save PS button had been pressed, and will then bring up a simple window which allows you to direct the output to a printer, to a previewer, or to cancel the operation.

Press Dismiss to cancel printing.




next up previous contents index
Next: viewercanvasprintmanager - Constructor Up: viewer - Module Previous: viewercanvasmanager.restoreoptions - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15