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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Mon Oct 27 00:32:48 PDT 2025

Total time taken to generate the page: 0.22782 seconds