Animated GIFs

O

Ouabaine

Hello,

Here I am again with my questions. I would like to participate more in the
forum (ie: give answers) but so far I had no answers to any of the questions
I saw. But there will come a time when I participate!

OK my question:

I read all the frames of a GIF file using the ImageReader. No problem to get
each frame. But I would like to get the delay to respect between the frames.
I could not find any method for this. Does anyone know how to get this (and
if this is possible?)

Thanks!
 
R

Roedy Green

I read all the frames of a GIF file using the ImageReader. No problem to get
each frame. But I would like to get the delay to respect between the frames.
I could not find any method for this. Does anyone know how to get this (and
if this is possible?)

I vaguely recall reading Java now supports animated GIFs, but I have
not experimented. In any case, you could get it by googling for the
file format for animated GIFs. then just step through the file to
extract the data used LEDataInputStream (values will be in little
endian). See http://mindprod.com/jgloss/endian.html

Have a look at http://mindprod.com/products1.html#COMMON11
look at the class ImageInfo. Your code will be much like that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top