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

Home » Public Forums » archive » Re: 8 bit color
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 color [message #38938 is a reply to message #38936] Sat, 03 April 2004 07:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
wmc@bas.ac.uk writes:

> I want to use 8-bit psuedo color on a 24-bit display (so I can screen
> capture as PNG's). But the display (X) remains resolutely True Color.
>
> I tried:
>
> idl.gr_visual: PseudoColor
> idl.gr_depth: 8
>
> in my .Xdefaults as recommended in
>
> http://www.dfanning.com/color_tips/unix_16bit_visuals.html
>
> but this didn't work. I've tried device,true_color=0 and ,/psuedo
> and none of it works: I'm stuck in true color. What are the magic
> words (please)?

TVREAD. Well, it *used* to be TVREAD. Then I think I changed
the PNG code to use 24-bit color images. But look at the
code for GIF, which is still in there. This is how you
will make an 8-bit colored PNG from a 24-bit screen capture.

Cheers,

David

P.S. Greetings from the Big Freeze. If sabbaticals are
designed to change perceptions, mine is working. I've
been here lest than a week and already I think of -10
below zero as "really warm". :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Print, 34000/340000 results 0? what ́s wrong?
Next Topic: Callable IDL on Fedora 1

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

Current Time: Fri Oct 10 17:49:04 PDT 2025

Total time taken to generate the page: 0.24467 seconds