comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Postscript dump to a Laserwriter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Postscript dump to a Laserwriter [message #631] Sun, 20 December 1992 13:55 Go to previous message
scowen is currently offline  scowen
Messages: 11
Registered: December 1992
Junior Member
In article <18DEC199217302565@stars.gsfc.nasa.gov>, thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040) writes:
|> >|> You can do a dump of a window with exactly the same colors that appear on the
|> >|> screen by using TVLCT,/GET to get the current (stretched) color table. For
|> >|> example,
|> >|>
|> >|> IMAGE = TVRD(0,0,!D.X_SIZE,!D.Y_SIZE)
|> >|> TVLCT,RED,GREEN,BLUE,/GET
|> >|> SET_PLOT,'PS'
|> >|> TV, IMAGE !Note: Not TVSCL
|> >|> TVLCT,RED,GREEN,BLUE
|> >|> SET_PLOT,'X'
|> >
|> >Unfortunately, Bill, this does *not* work. I've just tried it several times,
|> >with several different stretches, and the resulting PS file looks execatly
|> >the same for all versions. It uses the default setting of b/w linear in the
|> >4bit mode, which is of no use to me. This is my whole point.
|>
|> This may be because I left out the following command:
|>
|> DEVICE,/COLOR,BITS_PER_PIXEL=8
|>
|> which is crucial. Sorry about that. (I also forgot the DEVICE,/CLOSE at the
|> end.)

yes, well, this was the original problem, too. Laserwriters cannot read PS
that has the COLORTAB entry added by /color, I was trying to do this using
8bit with color turned off. Anyway, it's academic now, since if you use the
conversion I put in my previous post you can get a decent b/w version of a
rolled colortable from r,g,b and that does what I need.

Since the problems I was having have been essentially solved, I'm dropping
this line of discussion, since there will probably be other more complex
issues that i will run into over the next 2-3 weeks. Thanks again to all
who contributed, particularly Bill.

--
------------------------------------------------------------ -------------------
Paul A. Scowen INTERNET: scowen@wfpc3.la.asu.edu
Department of Physics & Astronomy uk1@spacsun.rice.edu
Arizona State University Tel: (602) 965-0938
Tempe, AZ 85287-1504 FAX: (602) 965-7954
------------------------------------------------------------ -------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: problems with FFT cross spectra and other floating point operations
Next Topic: Command buffer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:24:58 PDT 2025

Total time taken to generate the page: 1.04069 seconds