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

Home » Public Forums » archive » animated gif speed
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: animated gif speed [message #87618 is a reply to message #87605] Tue, 18 February 2014 16:17 Go to previous message
Paul Levine is currently offline  Paul Levine
Messages: 29
Registered: February 2008
Junior Member
On 2014-02-17 22:36:46 +0000, Dick Jackson said:

> Paul Levine wrote, On 2014-02-15, 3:41pm:
>> So far, when it comes to animations, my needs have been very simple, and I have
>> been able to accomplish what I want (using new graphics) with the /APPEND
>> keyword to the write method and the GIF file suffix, which gives me a nice
>> little animated gif.
>>
>> Now I would like to be able to control the "playback speed" of the
>> animated gif,
>> which if I understand correctly, is basically a delay (in 1/100th of a second)
>> specified for each frame that it waits before advancing to the
>> subsequent frame.
>> But it seems my rather simple method is too limited for this, as there is no
>> DELAY_TIME keyword in new graphics as there is in the WRITE_GIF procedure.
>
> (I'll guess you meant the Save method, not Write :-)
>
> If you really need a GIF, and really need the DELAY_TIME (which
> Graphic.Save doesn't support), then instead of using:
>
> myGraphic.Save('myfile.gif', /APPEND)
>
> ... I'd suggest you copy the image data and use WRITE_GIF with
> DELAY_TIME. For the GIF, you'll need to quantize colours down to 256
> (which Graphic.Save seems to do automatically).
>
> imageRGB = myGraphic.CopyWindow()
> image8bit = Color_Quan(imageRGB, 1, r, g, b, Colors=256)
> Write_GIF, 'file.gif', image8bit, r, g, b, /Multiple, Delay_Time=myDelay
>
> I did just this kind of thing (using XObjView instead of IDL 8
> Graphics) for the animated logo on my web pages. The Write_GIF business
> is at the bottom of this source file:
>
> http://www.d-jackson.com/images/djsclogo.pro
>
> A Feature Request to Exelis to add DELAY_TIME (or GIF_DELAY_TIME,
> perhaps) to Graphic.Save might bear fruit. It seems to me a small
> request.
>
> Hope this helps!
>
> Cheers,
> -Dick
>
> Dick Jackson Software Consulting Inc.
> Victoria, BC, Canada
> www.d-jackson.com

Thank you, indeed, that does help
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Phoenician aleph
Next Topic: How to check the variables by myself ?

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

Current Time: Wed Oct 08 20:07:21 PDT 2025

Total time taken to generate the page: 0.53522 seconds