[comp.windows.x] xwd - gen xy from color windows???

james@druco.ATT.COM (James B. Davis) (05/19/89)

Is it possible (with mods) or has it already been done
do use xwd to dump a color window into xy mode (as best as possible).
This should be do-able - use the background as white (0's) and
all other colors (1's) are the set bits.

Has someone already added this to xwd or does someone have a conversion
pgm.  The reason I need this is to print window dumps to
B/W postscript printers via xpr (which only likes xy).

It may be nicer to mod xpr to take the z format and output color
postscript (I would like this more but this is alittle beyond me
for now).

S/W: X11R3 - pchlvl 8
H/W: Sun 3/60FC w/SunOS 4.0.1

-----------------
James B. Davis (Jim), UNIX(tm) Systems Programmer
UNIX Systems Support & Distributed Computing Group (Sun Support Team)
AT&T Bell Laboratories
11900 North Pecos Street, 31G44
Denver, Colorado  80234

303/538-1647, Cornet 374-1647
Computing and Telecommunications Tech. Dept., Dept. XMRB50000 (DCTT)
[sun|uunet|rice!uunet]!att!druco!james (or read the Email header!)

UNIX is a registered TM of AT&T, UTS is a registered TM of Amdahl Corp.
Everything else is a (TM) or (C) of whoever claims to own it.
NOTE: My opinions are my own and not of my employer(s).

rws@EXPO.LCS.MIT.EDU (05/21/89)

    The reason I need this is to print window dumps to
    B/W postscript printers via xpr (which only likes xy).

xpr has been improved to do color-to-monochrome conversion for general
(including Z format) images.  It will also do a simple color to gray scale
conversion.  This code will be in R4, but we don't expect to release it
before then.  (Of course, AT&T is a member of the X Consortium, and as
such there are groups within AT&T that should have this code already.)