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

Home » Public Forums » archive » Re: write_GIF, PNG: incomplete palette
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: write_GIF, PNG: incomplete palette [message #33306] Mon, 16 December 2002 11:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Streun Andreas (andreas.streun@psi.ch) writes:

> when writing PNGs (or GIFs in IDL<5.4) I don't get
> the full 256 color palette but only something like
> 69 colors. As far as I know GIFs can have up to 256
> colors. Any idea what's the problem?

There are several things that can be going wrong.
Just a glance at your code shows TVRD() calls and no
DEVICE, DECOMPOSED calls, so that is enormously
suspicious.

Have you tried my TVREAD procedure? If that doesn't
produce correct PNG and GIF files, then we *know*
something is wrong. :-)

http://www.dfanning.com/programs/tvread.pro

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@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
Previous Topic: Illegal 3D Transformation (Beginner)
Next Topic: Re: Illegal 3D Transformation (Beginner)

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

Current Time: Fri Oct 10 08:25:53 PDT 2025

Total time taken to generate the page: 0.47761 seconds