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

Home » Public Forums » archive » Re: Alternative to COLOR_QUAN ? GIF with more than 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
Re: Alternative to COLOR_QUAN ? GIF with more than 256 colors [message #74985] Thu, 10 February 2011 05:20
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Feb 10, 12:57 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Yes ! Checkhttp://www.cydeweys.com/blog/2008/03/26/gifs-not-256-co lors/

Impressive!

> What I realized is that the routine WRITE_GIF only supports an input
> BYTE array. That means that I can only save from 0 to 255 colors.

Well, WRITE_GIF is written in IDL, so I expect you could modify it to
accept >256 colours for your own personal use if you had the time and
expertise...

> That's really annoying...
> Forget my post,

I suspect that's the best solution :-(

>
> Bernat

Chris
Re: Alternative to COLOR_QUAN ? GIF with more than 256 colors [message #74986 is a reply to message #74985] Thu, 10 February 2011 04:57 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Yes ! Check http://www.cydeweys.com/blog/2008/03/26/gifs-not-256-colors/

What I realized is that the routine WRITE_GIF only supports an input
BYTE array. That means that I can only save from 0 to 255 colors.
That's really annoying...
Forget my post,

Bernat
Re: Alternative to COLOR_QUAN ? GIF with more than 256 colors [message #74987 is a reply to message #74986] Thu, 10 February 2011 03:34 Go to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Feb 9, 9:21 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi folks,
>
> I want to create an animated GIF from my IDLgrWindow (object graphics
> IDL 7.1).
> How could I create GIFs with more than 256 colors ?
> Thank you in advance,
>
> Bernat
>
> PS GIFs aren’t limited to 256 colors

From the wikipedia article:
"The format supports up to 8 bits per pixel thus allowing a single
image to reference a palette of up to 256 distinct colors."

Are you *sure* about your PS statement?

Regards,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Picking data points "inside" a IDLgrPolygon
Next Topic: Re: yfit in linfit showing up as float [ ] filled with NANs

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

Current Time: Wed Oct 08 15:10:20 PDT 2025

Total time taken to generate the page: 0.00674 seconds