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

Home » Public Forums » archive » Re: Saving 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: Saving Color Tables [message #40863] Tue, 14 September 2004 13:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rick Towler writes:

> On a similar note, how can you create a brand new color table file? I
> tried the obvious, setting the FILE keyword to a new file name and
> selecting an ITAB of 0(or 1 or 10 or 100) but that fails.
>
> Not a pressing issue, and the workaround was trivial (I already had a
> function that created the table so I simply create an instance of
> IDLgrPalette when the application starts) but I did find this annoying.
> Also, I am sure I could copy the built in color table file and then
> modify that but it really seems like I should be able to create a shiny
> new color table file... Is it possible?

A standard color table file has a byte that tells you how many
color tables are in the file, and then three 256-byte vectors
with the red, green, and blue values. These are replicated by
as many color tables as there are in the file. The file is
stored in binary format. Should be fairly easy to duplicate. :-)

Cheers,

David

--
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: Button Events question
Next Topic: least square error for a regression

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

Current Time: Sat Oct 11 21:27:39 PDT 2025

Total time taken to generate the page: 1.03904 seconds