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

Home » Public Forums » archive » Re: Display Gifs, each w/diff color tables?
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: Display Gifs, each w/diff color tables? [message #16240 is a reply to message #16239] Tue, 13 July 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Rose (rmlongfield@my-deja.com) writes:

> I'm beginning to hum Bruce Springsteen's song: "52 channels
> and nothing on". My 24 colors must be brain-dead. I follow exactly
> what David said in a previous post. The first line of my startup file
> I have written: print!d.n_colors and I get 256. However, once I input
> the lines that David said, I get the promised 16777216. Then I run:
> @idlsave.sav , which is the following lines:
>
>
> read_gif,'./GIF_FILES/test1.gif',image,r,g,b
> tvlct,r,g,b
> window,/free, retain=2
> tv,bytscl(image)
> read_gif,'./GIF_FILES/test2.gif',image,r,g,b
> tvlct,r,g,b
> window,/free, retain=2
> tv,bytscl(image)
> read_gif,'./GIF_FILES/test3.gif',image,r,g,b
> tvlct,r,g,b
> window,/free, retain=2
> tv,bytscl(image)
>
> The "crazy colors" I referred to earlier looks to me like the color
> table is over-written and the new colors are being loaded into the
> previously plotted image (which should not happen, according to the
> rules).

Actually, I think the "crazy colors" are coming from the
BYTSCL command. These GIF files should definitely *NOT*
be byte scaled!

Just TV the image and I think you will be fine. :-)

If not, please let use know the results of these two
commands after you open a graphics window:

Device, Get_Visual_Name=thisName, Get_Visual_Depth=thisDepth
Print, thisName, thisDepth

Or, on older versions of IDL:

Help, /Device

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Read Message
Read Message
Previous Topic: Re: RedHat 6.0 and IDL 5.2
Next Topic: RedHat 6.0 and IDL 5.2

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

Current Time: Sun Oct 12 04:23:34 PDT 2025

Total time taken to generate the page: 1.59960 seconds