Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xwd color printing

12 views
Skip to first unread message

or...@my-deja.com

unread,
Sep 15, 1999, 3:00:00 AM9/15/99
to
Hai !
I am not able to print a color xwd picture
on HP Laser Jet(color). I tried using following
scipt.
xwd -out file
xpr -rv -device ps > file.ps
lpr -d printername
My aim is to print a color window using xwd. If
any can help in this regard, I will be thankful.
It not must that I have to use xwd. I have to grab
window and print it in color using a script.

Thanks in advance
Raj Sekhar


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Brian K. White

unread,
Sep 16, 1999, 3:00:00 AM9/16/99
to

well, for me:

gv /usr/local/share/ghostscript/5.10/examples/colorcir.ps

shows a color image, and,

xwd -out /tmp/tst.wd
gimp /tmp/tst.wd

shows a color image, but,

xwd -out /tmp/tst.wd
xpr -device ps -output /tmp/tst.ps /tmp/tst.wd
gv /tmp/tst.ps -landscape -swap

shows a black and white image.

therefore, I'm pointing my finger at xpr not producing a color ps in the
first place. So you need something else besides xpr to make the ps, and
this may mean you need something other than xwd to grab the image unless
you can find another scriptable util that can read xwd output. Look into
ImageMagic for starters, and maybe gimp or xv can be run
non-interactively too. both of those can read xwd files, and output
color ps files. but it requires mouse clicks from a human being.

--
Brian~

0 new messages