Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ginosko!husc6!rice!sun-spots-request From: nova!hart@decwrl.dec.com (Howard C. Hart) Newsgroups: comp.sys.sun Subject: Re: Screendumps in landscape format Keywords: Windows Message-ID: <347@brazos.Rice.edu> Date: 25 Jul 89 02:47:16 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 34 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 82, message 2 of 9 In article <169@brazos.Rice.edu> dswt@stl.stc.co.uk (Stewart Tansley) writes: >X-Sun-Spots-Digest: Volume 8, Issue 73, message 9 of 19 > >The standard 'screendump | lpr -v' magic spell gives me a (very nice) >print-out of my Sun's screen. However, it's in PORTRAIT format, ie. the >paper's top and bottom are the shorter sides. My question is how do I get >a 90 degree rotated version of this - LANDSCAPE format. No problem. Try this... screendump | pssun -r -S 5.05 -l 1.0 1.0 | lpr -Plw This will 1) dump the image then pipe it to 2) the transcript postscript convertor which supports things like resizing and rotation, then pipe the postscript image to your Laserwriter via lpr. The above assumes A) you have Transcript software and a Postscript printer like an Apple Laserwriter and B) that you want your image to fit on a viewgraph size 5.05 inches in width, rotated (-r) 90 degrees, left and right margins set at 1 inch. You can play with your own settings to scale and rotate accordingly. Word of warning...this holds only for black and white screen dumps, it'll bomb on color machines, since they use 8 bits per pixel versus 1 bit for black and white. There a number of tricks you can play to get around this starting with grabbing some of the 8bit to 1bit dithering converting floating around the net or if you don't care whether the colors just disappear if there are more than 2 of them, you can add an additional filter between screendump and pssun, that being Sun's generic rasfilter program. (the dithering filter would go in the same spot). If you want greater details or copies of dithering algorithms, give me a holler. Howard C. Hart UUCP:{sun!sunncal,pyramid}!leadsv!laic!nova!hart Lockheed Missiles and Space Co. Orgn 59-53, Bldg 593 Ph: (408) 743-2253 or -7353 Sunnyvale, CA 94086