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 #31253 is a reply to message #31251] Wed, 26 June 2002 09:02 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
David Fanning wrote:
[stuff deleted]
> 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. :-)

To set the background color, my IMDISP procedure uses code similar to
the following:

x = [-0.01, 1.01, 1.01, -0.01, -0.01]
y = [-0.01, -0.01, 1.01, 1.01, -0.01]
polyfill, x, y, /normal, color=background

where the variable "background" is an index in the color table. This is
the only way I know of to reliably set the background color on all IDL
direct graphics devices. The source for IMDISP is available at

http://www.gumley.com/PIP/Free_Software.html

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[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:25:17 PDT 2025

Total time taken to generate the page: 0.00423 seconds