[comp.windows.news] How to convert a NeWS image

"Michael_Powers.Henr801M"@XEROX.COM (12/17/88)

I am looking for a way to snap a region from the NeWS screen and then
convert the image to an X bitmap file. These would probably be done in
separate steps. Perhaps there is already a utility for snapping part of the
screen and dumping it as an .im8 or .im1 file. And if I'm lucky someone
else has created a way to convert these file formats to the X bitmap
format.

I am on a monochrome X server if that helps at all. 

Mike
powers.henr801m@xerox.com

P.S. Why, you ask? Because the bitmap drawing tools in X stink and I would
like to take some nice images I have created in NeWS (and the globe images)
and use them in an X application.

montnaro@sprite.steinmetz.ge.com (Skip Montanaro) (12/19/88)

In article <881216-132153-4543@Xerox> "Michael_Powers.Henr801M"@XEROX.COM writes:

   I am looking for a way to snap a region from the NeWS screen and then
   convert the image to an X bitmap file. These would probably be done in
   separate steps. Perhaps there is already a utility for snapping part of the
   screen and dumping it as an .im8 or .im1 file. And if I'm lucky someone
   else has created a way to convert these file formats to the X bitmap
   format.

Try Jef Poskanzer's pbm (portable bitmap) package, available from your
nearest comp.sources.unix archive, I believe. It has Sun raster file to pbm
and pbm to X bitmap filters, plus cropping filters, so you can just capture
the screen with screendump:

	screendump | rasttopbm | pbmcut x y wid ht | pbmtoxbm

--
Skip Montanaro (montanaro@sprite.steinmetz.ge.com, montanaro@ge-crd.arpa)

greg@gergle.UUCP (12/20/88)

Look in the manual for writecanvas & writescreen. 

If you want to end up with a mono-image, make the snapshot on 
a b&w NeWS screen.

Someone has created alot of bitmap format conversion routines for X11.
They may be on the R3 tape. Sun pixrect is one of the converted formats.

If you can't find the stuff on the R3 tape, put a request on the xpert
mailing list.


	-greg.