Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpr(1)

xraster(1)

8to24(1)

dither(1)

ras2ps(1)  —  USER COMMANDS

NAME

ras2ps − converts a Sun RasterFile to a PostScript file. 

SYNOPSIS

ras2ps [ −xxoffset ] [ −yyoffset ] [ −Xxscale ] [ −Yyscale ] [ −wwidth ] [ −hheight ] [ −rrotation ] [ −i ] [ −C ] [ −l ] [ −n ] [ −v ] [ −q ] [ rasterfile | − ] [ psfile ]

DESCRIPTION

ras2ps converts a Sun RasterFile to a PostScript file.  If both filenames are missing, the rasterfile is read from stdin and the PostScript is written to stdout.  If there is only one filename, then it is interpreted as the rasterfile and is opened for input.  To have a named output PostScript file and still read the rasterfile from stdin, use a dash (-) in place of the input filename. 

OPTIONS

−xxoffset
Set the amount of space to the left of the image to be xoffset inches.  The default is a quarter inch to keep the image in the imagable area of the printer. 

−yyoffset
Set the amount of space below the image to yoffset inches.  The default is a quarter inch same as above. 

−Xxscale
Multiply the width of the image by xscale. This is used to stretch or shrink an image along the X axis.

−Yyscale
Multiply the height of the image by yscale. This is used to stretch or shrink an image along the Y axis.

−wwidth
Set the max width in inches. 

−hheight
Set the max height in inches.  The -w and -h options set the desired width and height of the output image in inches.  Default height and width are the source image dimensions at 300 dpi.  ras2ps will expand or shrink the image to fit these dimensions, while still preserving the image scale values.  The closest fit within the boundaries will be used.  Note that width and height arguments do not stretch or shrink the image, but only set its limits.  At least one of width or height is guaranteed to be satisfied. 

−rn Rotate the image by n degrees, counterclockwise.  The origin of rotation is the lower left corner of the image at the point specified by the -x and -y options. 

−i Invert the image.  This will reverse black and white on a monochrome image and is of limited usefulness on color images. 

−C Output 8 and 24 bit images as color PostScript using the colorimage operator as supported by printers such as the QMS ColorPS 800. 

−l Orient the image in landscape mode, which puts the origin at the lower right corner of the page and rotates the image 90 degrees.  All arguments follow this new orientation.  The default is Portrait mode. 

−n Do not include the PostScript operator ’showpage’ in the output.  This is for backward compatibility with programs which do not override ’showpage’ as the EPSF spec advises. 

−v Verbose mode will print information as it processes the image.  (The default is to be silent.) 

−q Query (prints list of options)

SEE ALSO

lpr(1), xraster(1), 8to24(1), dither(1)

AUTHOR

Patrick J. Naughton (naughton@wind.sun.com)

COPYRIGHT

Copyright (c) 1989 by Sun Microsystems, Inc.  Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. 

Sun Release 4.1  —  Last change: 27 Nov 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026