Re: problems w/PS images [message #4495] |
Thu, 15 June 1995 00:00  |
gurman
Messages: 82 Registered: August 1992
|
Member |
|
|
In article <DA81nw.AuE@hpl.hp.com>, peter@hpl.hp.com (Peter Webb) wrote:
> William Thompson (thompson@orpheus.nascom.nasa.gov) wrote:
>
> : range of 256, but the color table, which the PostScript device manages
to pick
> : up from the windowing system, still only goes up to 230. The color indices
> : higher than that end up being set to some default greyscale.
>
> : Bill Thompson
>
>
> Bill, does the color table always get picked up, or only when you
> specify the /COLOR keyword to DEVICE? It has always seemed to me
> that for grayscale postscript, you need to use top=255, while for
> screen display you need to use some smaller value to leave room for
> the window manager.
In general, you should refer to !d.n_color - 1, rather than a
hardwaired value, regardless of the device. This should also render your
code more portable among display devices.
Joe Gurman
--
J.B. Gurman / Solar Physics Branch / NASA Goddard Space Flight
Center / Greenbelt MD 20771 USA / gurman@uvsp.gsfc.nasa.gov
| Federal employees are still prohibited from holding opinions |
| while at work. Therefore, any opinions expressed herein are |
| somebody else's. |
|
|
|