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

Home » Public Forums » archive » Re: switching PS device from color to b/w?
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: switching PS device from color to b/w? [message #31256 is a reply to message #31255] Wed, 26 June 2002 08:06 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Mankoff (mankoff@I.HATE.SPAM.cs.colorado.edu) writes:

> What is the difference between:
>
> DEVICE, color=0
> and
> DEVICE, /color, bits_per_pixel=1
>
> Which is more appropriate? Is the only difference for those people who
> argue about black being a color vs. the lack of all colors?

DEVICE, COLOR=0 turns PostScript color output off. BITS_PER_PIXEL=1
simply stores 1 bit per image pixel in the file every time you
do a TV command. It probably stores the lowest bit, so I imagine
an image would look pretty strange.

With color turned off, however, you can only get black
and white output. If you want gray-scale output, you
have to turn COLOR on and load a gray-scale color table.

And, remember, in PostScript you can have any color background
you want, as long as it is white. But that is a discussion
for another day. :-)

Cheers,

David

P.S. All this PostScript stuff is pretty much taken care
of automatically if you use something like PSCONFIG to
set up your PostScript device:

http://www.dfanning.com/programs/psconfig.zip

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: changing editors?
Next Topic: how to debug floating error

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

Current Time: Wed Oct 08 19:26:50 PDT 2025

Total time taken to generate the page: 0.00378 seconds