jdm@boulder.Colorado.EDU (James D. Meiss) (07/24/90)
We are trying to print a .rgp file (created using snapshot) to our postscript printer. The procedure that we are using, which works, more or less, is the following Convert the file to postscript using pprint Send the file to the (bsd network) printer using lpr Two Problems: 1) the image is scaled to have its width equal to the width of the page (8 inches). How do we get it to print at the original size? pprint seems to have some options, but we have no documentation on how to use them. 2) The images are created in black and white (We clear the window to WHITE and draw in BLACK), but the printed image has a light grey background. In fact the .ps file which pprint creates is mostly "f9f9f9f9f9" for the background, which I imagine is grey. Is there anyway to get a white background? Is there a better way to do this? Are there any subroutines out there in netland which we can use to add printing capability to our programs? I guess we'd like to be able to generate postscript files in some easy way. Thanks Jim
blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") (07/24/90)
What we do in my branch is save images in a common run length encoded format. This is from the Ames ARCGraph system of subroutines. Once we have an image in this format, I have a utility that converts it to 3 other formats Tektronix 4693D, Celco film recorder, and PostScript black & white and grayscale. The conversion program is written in C. It was originally written in FORTRAN for the 3000's, but the 4D FORTRAN was broken, it wont allow the creation of binary files, (and looks like it might still be broken under 3.3, but not as badly, I still have to double check that. I didn't like what I read in the manual.) so I had to convert it to C, so it would work on the 4D's. If you want I could mail you the PostScript subroutines. -- Brent L. Bates NASA-Langley Research Center M.S. 361 Hampton, Virginia 23665-5225 (804) 864-2854 E-mail: blbates@aero4.larc.nasa.gov or blbates@aero2.larc.nasa.gov
blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") (07/24/90)
Here is the information I have for the ARCGraph system. Eric A. Hibbard (415) 694-6629 or George Makatura (415) 694-6852 Advanced Computer Graphics Group NASA Ames Research Center Mail Stop 233-14 Moffett Field, CA 94035 I think it is free and without copyright to anyone in the U.S. The metafiles produced can have 2D & 3D vector & polygon objects. Also raster data and Hershey text fonts. I will send the PostScript routines in my next message. -- Brent L. Bates NASA-Langley Research Center M.S. 361 Hampton, Virginia 23665-5225 (804) 864-2854 E-mail: blbates@aero4.larc.nasa.gov or blbates@aero2.larc.nasa.gov