Color Postscript from Object Graphics. [message #12000] |
Fri, 19 June 1998 00:00  |
Terry Figel
Messages: 2 Registered: June 1998
|
Junior Member |
|
|
Hi-
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 get a nicely shaded grayscale postscript, not color output.
I downloaded David Fanning's xplot.pro, and produced B&W
postscript from that (although it did do Jpeg & gif color)
Any help would be appreciated.
-Terry
--
------------------------------------------------------------ ---
Terry Figel terry@cse.ucsc.edu
UC Santa Cruz (408) 459-3960
VizLab Systems Manager FAX (408) 459-5333
http://www.cse.ucsc.edu/~terry Applied Sciences 149
------------------------------------------------------------ ---
|
|
|
Re: Color Postscript from Object Graphics. [message #12127 is a reply to message #12000] |
Mon, 22 June 1998 00:00  |
Terry Figel
Messages: 2 Registered: June 1998
|
Junior Member |
|
|
That was it, thanks David, I thought I should CC the group,
give you a plug for helping out!
Thanks again.
-Terry
David Fanning wrote:
> 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/
--
------------------------------------------------------------ ---
Terry Figel terry@cse.ucsc.edu
UC Santa Cruz (408) 459-3960
VizLab Systems Manager FAX (408) 459-5333
http://www.cse.ucsc.edu/~terry Applied Sciences 149
------------------------------------------------------------ ---
|
|
|