Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!orstcs!neptune!pvo1478 From: pvo1478@neptune.uucp (Paul O'Neill) Newsgroups: comp.lang.postscript Subject: Re: Printing color sun screen dumps on a postscript printer Summary: psraster Message-ID: <9094@orstcs.CS.ORST.EDU> Date: 26 Feb 89 06:55:53 GMT References: <5987@sdcsvax.UCSD.Edu> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: pvo1478@oce.orst.edu (Paul O'Neill) Organization: College of Oceanography, Oregon State Univ., Corvallis, Or. Lines: 38 In article <5987@sdcsvax.UCSD.Edu> hidley@odin.ucsd.edu (Greg Hidley) writes: > >We here at UC San Diego have been very unsuccessful at being able to >provide support for printing (on postscript printers) screendumps from >color sun displays. We use the commands: > > screendump | rastfilter8to1 | rast2ps | lpr > OR > screendump | rastfilter8to1 | pssun | lpr > Aaargh. Don't dither the image with rastfilter8to1 and only send 1-bit data to the postscript printer. Send the printer 8-bit data and let it do the dithering. Use psraster (anonymous ftp from titan.rice.edu: /sun-source). However psraster has a bug in that it does not reclaim it's VM and will run out for large images. Apply this diff: yourhost% diff psraster.c.orig psraster.c 194c194 < fprintf( outfile, "{GetImageRow} image\n"); --- > fprintf( outfile, "{restore save GetImageRow} save 6 1 roll image\n"); screendump | psraster | lpr Even sexier is: dumpregion | psraster | lpr dumpregion is also available from titan.rice.edu. Good luck, Paul O'Neill pvo@oce.orst.edu Coastal Imaging Lab OSU--Oceanography Corvallis, OR 97331 503-754-3251