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

Home » Public Forums » archive » Re: 8-bit Postscript problem (Will IDL and color Postscript *ever* get along?)
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: 8-bit Postscript problem (Will IDL and color Postscript *ever* get along?) [message #49202 is a reply to message #49200] Fri, 07 July 2006 05:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. Kelly writes:

> Hello, I know this subject has (had) come up many times for over a
> decade, and from what I can
> tell on this newsgroup, seemed to be worked out to a great extent by
> say 2004.
>
> My problem is a 'classic' (?) where color postscript output is only 16
> colors. That is, I'm
> trying to make a Postscript color image, but I get 'blocky' colors -
> i.e., only 16 of them.
>
> But the twist (or me missing something) is that
> 1) I am using David Fanning's flexible TVIMAGE program (thanks!
> great prog btw),
> and
> 2) I explicitly set DEVICE, BITS=8, COLOR=1, ENCAPSULATED=1 after
> doing SET_PLOT,'ps'.
>
> A curious thing, though: using Fanning's COLORBAR program produces
> 256-color output on the
> Postscript plot, so the bar looks nice and the plot is
> crude/blocky/pixelly/ick. Also, doing a LOADCT
> after setting to PS output does not help.
>
> Could anyone help or offer any suggestions for this seemingly
> ancient/solved problem?

Humm. If everything is as you say it is, and COLORBAR
works correctly, then I would say the problem is with
your image. Does your program work correctly on your
display? I would guess your image is not byte scaled,
from the available evidence. (I would like to see the
code, however.)

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: Reading Binary
Next Topic: 8-bit Postscript problem (Will IDL and color Postscript *ever* get along?)

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

Current Time: Fri Oct 10 05:43:01 PDT 2025

Total time taken to generate the page: 0.00757 seconds