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

Home » Public Forums » archive » Re: Need Help with PRINTER Problem
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: Need Help with PRINTER Problem [message #21338] Mon, 21 August 2000 00:00
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
I did yet another test. I can't save to .ps from dialog_printersetup(),
but I can from dialog_printjob(). So I made a .ps file through Phaser
840 color laser jet driver, and it has 200 shades of pure gray. No yellow.
Cheers,
Pavel
Re: Need Help with PRINTER Problem [message #21339 is a reply to message #21338] Mon, 21 August 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Pavel Romashkin (promashkin@cmdl.noaa.gov) writes:

> I tried to run the code. On Phaser 550, color laser jet, the image came
> out in shades of gray (at least I can't see any color comparing to the
> output of the same code to a b/w LaserJet 4+). I also tried to set the
> device to PS (which is fairly useless as it will not use printer
> driver), with color enabled (in dialog_printer I have no option to print
> to a file - why?). I get a grayscale image with 13 shades of gray. I
> checked the indexed color table of a post script image and there are
> only gray shades.

Preliminary results that are coming in indicate that
the problem appears to be confined to PostScript printers.
I suspect a bug in how PostScript output is written to the
printer. The work-around in my code is just to reload
the image colors once I have loaded the last drawing color
and before I display the image:

TVLCT, r, g, b, /Get
TVLCT, r[0:imagecolors-1], g[0:imagecolors-1], b[0:imagecolors-1]

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Need Help with PRINTER Problem [message #21340 is a reply to message #21338] Mon, 21 August 2000 00:00 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
I tried to run the code. On Phaser 550, color laser jet, the image came
out in shades of gray (at least I can't see any color comparing to the
output of the same code to a b/w LaserJet 4+). I also tried to set the
device to PS (which is fairly useless as it will not use printer
driver), with color enabled (in dialog_printer I have no option to print
to a file - why?). I get a grayscale image with 13 shades of gray. I
checked the indexed color table of a post script image and there are
only gray shades.
Cheers,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: "Ghostfont" - reproduced
Next Topic: Re: Font Encoding Problem

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

Current Time: Wed Oct 08 15:16:59 PDT 2025

Total time taken to generate the page: 0.00607 seconds