writePostscript

Synopsis

Writes the contents of a 2D image field, to a raster color postscript file format.

Input Ports

Name Type Description

image_in Image+ARGB image to be written to PS file

Description

The writePostscript module takes an image field, and writes an ASCII raster color postscript file suitable for printing. The file to be written can be selected through a user interface. This is different from the vector postscript module (Output VPS) in that it only writes a raster pixel oriented version of the picture to a file, without polygon and line edge information. Using the Output Field module connected to a viewer, an image of any size can be created. This image could be larger than screen resolution if needed.

This module can be more flexible that the Output VPS module as it only deals with the writing of an image to a file. The conversion of the scene or data source into an image is performed by other modules. Hence this module can output a more varied selection of images.

Inputs

&image_in

Reference to a Image+ARGB input containing the image that should be written to the colour postscript file.

Outputs

(none)

Utility Modules

The User Macro writePostscript uses the low-level macro WritePsCore. It also makes use of the WritePsUI UI macro.

Example

An example application WritePostscriptEg is provided, which loads a geometry file and allows that data to be manipulated and the resultant image to be written to a colour postscript file.

Files

iac_proj/wr_ps/wrpsmacs.v contains the writePostscript User Macro, the WritePsUI UI Macro, and the example application WritePostscriptEg V definitions.

Other Notes

The WritePsMacs library inherits its process. As this library contains no procedural code, the process is not important.

The best way to use this module is to output data in both VPS and colour Postscript forms and compare results. The format that that gives the best picture or smallest file size can then be choosen. The results that will be achieved will depend on the contents of your scene.

Author

Ian Curington
Advanced Visual Systems, Ltd.
Hanworth Lane, Chertsey Surrey, UK
KT16 9JX
<a HREF="mailto:ianc@avs.com">ianc@avs.com</a>

Contact

International AVS Centre
Manchester Visualization Centre
Manchester Computing
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

writePostscript, WritePsUI, WritePostscriptEg, Output VPS, Output Field, Write Image