|
Re: Do sav files have only 256 colors [message #15052 is a reply to message #14997] |
Thu, 15 April 1999 00:00  |
steinhh
Messages: 260 Registered: June 1994
|
Senior Member |
|
|
David Fanning wrote:
> Someone suggested I put Device, Decomposed=0 in my
> signature file in an attempt to get the message out.
> Couldn't hurt, I suppose. :-)
[..]
> 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
> No Colors? Device, Decomposed=0
Nope. Too inconspicuous. How about
David "Decomposed=0" Fanning, Ph.D.
.....
:-)
Stein Vidar
|
|
|
Re: Do sav files have only 256 colors [message #15066 is a reply to message #14997] |
Wed, 14 April 1999 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
R.Bauer (R.Bauer@fz-juelich.de) writes:
> it was my fault because device,decomposed=0 is in my start_up file.
> While I am using idlde I have this startup file but during runtime this file is
> ignored.
I deliberately don't put this command in my start-up file
in an attempt to cut down on the dumb errors I make
otherwise. But I can't tell you how many times I run
programs and don't get any colors...
Someone suggested I put Device, Decomposed=0 in my
signature file in an attempt to get the message out.
Couldn't hurt, I suppose. :-)
I wonder if RSI is giving any thought to this issue... :-(
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
No Colors? Device, Decomposed=0
|
|
|
Re: Do sav files have only 256 colors [message #15068 is a reply to message #14997] |
Wed, 14 April 1999 00:00  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
David Fanning wrote:
> R.Bauer (R.Bauer@fz-juelich.de) writes:
>
>> this is a small example.
>> create a runtime sav file 'cbar_true.sav' in true color mode of your graphics
>> card
>> Then execute the file. You' ll see only greyscaled colors.
>> If you change to 8bit color mode and you execute again you see a red to white
>> colorsystem
>>
>>
>> pro cbar_true
>> loadct,3
>> cbar
>> wait,20
>> end
>
> I modified your program slightly, because I don't have the CBar
> program. And, of course, I added Device, Decomposed=0 because
> without it you will NEVER get colors anywhere (see posting by
> our newest member, S. Daniel Kwak). But my program looks like
> this:
>
> pro cbar_true
> device, decomposed=0
> loadct,3
> colorbar
> wait, 20
> end
>
> And it ran *perfectly* on a Windows NT machine set in 24-bit
> mode.
>
> Are you sure you created the save file properly?
>
> IDL> .Compile cbar_true
> IDL> Resolve_All
> IDL> Save, /Routines, File='cbar_true.sav'
>
> If you forget the Resolve_All command, of course, then you
> will never find the LOADCT command and that would cause
> colors to be gray-scale.
>
> 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
Thanks to all ,
it was my fault because device,decomposed=0 is in my start_up file.
While I am using idlde I have this startup file but during runtime this file is
ignored.
This means that's I have to replicate all settings from the start_up file to the
routines which I like to use in runtime.
R.Bauer
|
|
|