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

Home » Public Forums » archive » Do sav files have only 256 colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Do sav files have only 256 colors [message #14997] Tue, 13 April 1999 00:00 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
I found on NT 40 created sav files with graphics output on screen won't
work with
more than 256 colors.

R.Bauer
Re: Do sav files have only 256 colors [message #15052 is a reply to message #14997] Thu, 15 April 1999 00:00 Go to previous message
steinhh is currently offline  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 Go to previous message
davidf is currently offline  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 Go to previous message
R.Bauer is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL- readf fails from CD
Next Topic: Re: Documentation

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

Current Time: Wed Oct 08 13:39:11 PDT 2025

Total time taken to generate the page: 0.00606 seconds