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 #16253 is a reply to message #16252] Mon, 12 July 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
rmlongfield@my-deja.com wrote:
> Here's a question I haven't seen discussed yet. I have several
> different GIF files given to me by several sources. I can read and
> display them individually. However, I can't look at them allat the same
> time. This is, I believe, due to the fact that the GIF files come with
> their own color tables. Every time a new one is loaded, the color table
> from the previous one is re-defined. I have tried the
> "split table" technique outlined in DWF's book, but it doesn't work
> because some of the GIF images fill in all the r,g,b arrays.

Rose,

If you have a 24-bit display, try this in a new IDL session:

;- Set display to 24-bit decomposed mode
device, true=24, decomposed=0, retain=2
if !d.n_colors le 256 then message, '24-bit mode unavailable'

;- Open a window
window, /free, xsize=950, ysize=700

;- Display the first GIF
read_gif, 'file1.gif', image, r, g, b
tvlct, r, g, b
tv, image, 0, 0

;- Display the second GIF
read_gif, 'file2.gif', image, r, g, b
tvlct, r, g, b
tv, image, 475, 0

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[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: Fri Oct 10 16:51:40 PDT 2025

Total time taken to generate the page: 0.24069 seconds