Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Animated GIFs

Thread view: 
Ouabaine - 25 Oct 2007 14:15 GMT
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!
Roedy Green - 25 Oct 2007 20:25 GMT
>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.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.