Best Regards
Thorsten
I believe you can load and display them with an ImageIcon in a JLabel.
I don't think there are any methods to extract the frames but I'm not an
expert on that.
--
Knute Johnson
email s/nospam/knute2009/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
> is it possible to load an animated gif frame-by-frame ?
javax.imageio.ImageReader
Check this thread on the Sun forums
<http://forums.sun.com/thread.jspa?threadID=5395006>
In it I am creating an animated GIF, but I expect
there will be a lot of useful info. related to
dealing with animated GIFs in general. And in
case it is not clear, it is the posts of Maxideon
you should pay attention to, in that thread. ;)
--
Andrew T.
pscode.org
Yes, try here:
<http://java.sun.com/j2se/1.4.2/docs/guide/imageio/spec/apps.fm3.html>
Especially this part, which explains that the imageIndex is used to
access individual frames.
3.3.3 Reading From Multi-Image Files
All the methods in the ImageReader class that deal with images take
an imageIndex parameter. This parameter allows access to any of the
images in a multi-image file.