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

Home » Public Forums » archive » Re: Color Postscript from Object Graphics.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Color Postscript from Object Graphics. [message #11997] Fri, 19 June 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Terry Figel (terry@cse.ucsc.edu) writes:

> I think I am missing something Fundemental:
> How do I produce color postscript from Object graphics?
> I am doing something like this:
> sState.myprinter->Draw,sState.oView
> sState.myprinter->newdocument
> I did a myprinter->GetProperty for color_model, and
> it returns 0 (RGB) default. It should then produce PS that
> has the same colors as the Screen output right?

I just tried this:

(1) Installed a color PostScript printer device on my
machine. I chose, since I don't have one really,
the HP Color LaserJet PS 5 driver.

(2) Created a printer object:

thisPrinter = Obj_New('IDLgrPrinter')

(3) Looked at the dialog that allows me to select the
printer properties:

ok = Dialog_PrinterSetup(thisPrinter)

Among the properties in the dialog is a droplist to select
one of the printers I have installed. I select the HP Color
LaserJet and the dialog how shows a toggle to switch between
grayscale and color (color was set by default, which I fully
expected). Now, all I have to do is click OK and call the
draw method on the printer.

thisPrinter->Draw, thisView

I just tried my XPlot program. Under the File menu I selected
Print Setup. I chose to make a color Adobe Acrobat color file,
so I selected that printer driver. (The HP Color LaserJet doesn't
have a toggle for sending the output to a file, although
some of the printers I use do.) Set it up for color output,
clicked OK, and presto (well, p-r-e-s-t-o) there was the
color output, just as I expected.

Interestingly, I tried to make a Xerox DocuTech 135 PS2 color
PostScript file (this driver dialog allows me to write to a file),
and although the printer code is executed in exactly the
same way as the Acrobat file is above, the file never gets
any output written to it. I don't know what to make of this.
This happened no matter if I was trying to write color or
grayscale output. Perhaps the DocuTech doesn't know how
to handle this kind of graphics output. I'll look into it.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: odd behavior of loadct
Next Topic: Re: WHat the bloody hell?

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

Current Time: Sun Oct 12 14:19:47 PDT 2025

Total time taken to generate the page: 1.28220 seconds