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

Home » Public Forums » archive » no grayscale on PCL printer
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
no grayscale on PCL printer [message #44782] Wed, 13 July 2005 09:29 Go to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

I have the following problem: I am using the PRINTER device to print a
byte image in index-color mode. On my computer (Win XP), I have my
office printer (HP Laserjet 4000N) installed twice, once with a PS
driver, once with a PCL driver. If I choose the PS driver
(dialog_printersetup()), the image comes out fine, if I choose the PCL
driver, it comes out in pure black-and-white (no grayscales). If I want
to print the image with a predefined colortable, it's still ok with the
PS driver (even though it comes out in grayscale, since it's not a color
printer), and with the PCL driver the whole image is black.

The two drivers behave slightly differently in other applications, but
not like that.

To set up the printer, I do:

[make sure the correct color table is loaded]
ok = dialog_printersetup(dialog_parent=event.top)
IF ~ok THEN return
set_plot, 'printer', /copy
!p.font = 1 ;; true type
!p.noerase = 1
device, /index_color
...

Any clues? Thanks for your help,

Benjamin
Re: no grayscale on PCL printer [message #44785 is a reply to message #44782] Wed, 13 July 2005 10:08 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> I have the following problem: I am using the PRINTER device to print a
> byte image in index-color mode. On my computer (Win XP), I have my
> office printer (HP Laserjet 4000N) installed twice, once with a PS
> driver, once with a PCL driver. If I choose the PS driver
> (dialog_printersetup()), the image comes out fine, if I choose the PCL
> driver, it comes out in pure black-and-white (no grayscales). If I want
> to print the image with a predefined colortable, it's still ok with the
> PS driver (even though it comes out in grayscale, since it's not a color
> printer), and with the PCL driver the whole image is black.
>
> The two drivers behave slightly differently in other applications, but
> not like that.
>
> To set up the printer, I do:
>
> [make sure the correct color table is loaded]
> ok = dialog_printersetup(dialog_parent=event.top)
> IF ~ok THEN return
> set_plot, 'printer', /copy
> !p.font = 1 ;; true type
> !p.noerase = 1
> device, /index_color
> ...
>
> Any clues? Thanks for your help,

I don't know anything about PCL printers, but I would
try setting the slightly misnamed COLOR keyword. I think
the keyword should really be COLOR_OR_GRAYSCALE_OR_WHATEVER,
but that's another story. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: no grayscale on PCL printer [message #44786 is a reply to message #44785] Wed, 13 July 2005 10:12 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
David Fanning wrote:
>
> I don't know anything about PCL printers, but I would
> try setting the slightly misnamed COLOR keyword. I think
> the keyword should really be COLOR_OR_GRAYSCALE_OR_WHATEVER,
> but that's another story. :-)

The PRINTER device doesn't have a COLOR keyword (only TRUE_COLOR or
INDEX_COLOR). Note, I am using the PRINTER device, not the PCL device.
The only difference between the two cases is that I choose a different
Windows printer in dialog_printersetup().

Benjamin
Re: no grayscale on PCL printer [message #44789 is a reply to message #44786] Wed, 13 July 2005 10:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> The PRINTER device doesn't have a COLOR keyword (only TRUE_COLOR or
> INDEX_COLOR). Note, I am using the PRINTER device, not the PCL device.
> The only difference between the two cases is that I choose a different
> Windows printer in dialog_printersetup().

Oh, right. Yeah, that probably doesn't work. :-)

Cheers,

David

P.S. Let's just say that PRINTER device was probably not
the *best* idea RSI ever had.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
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: Plotting a trajectory against a mapped image
Next Topic: Re: erratic EOF encountered when reading in similar data

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

Current Time: Sat Oct 11 22:08:24 PDT 2025

Total time taken to generate the page: 2.72543 seconds