Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to load the frames of an animated gif

275 views
Skip to first unread message

Thorsten Kiefer

unread,
Nov 30, 2009, 5:47:34 AM11/30/09
to
Hi,
is it possible to load an animated gif frame-by-frame ?

Best Regards
Thorsten

Knute Johnson

unread,
Nov 30, 2009, 12:45:02 PM11/30/09
to

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

Christian Kaufhold

unread,
Nov 30, 2009, 5:50:36 PM11/30/09
to
Thorsten Kiefer <cyli...@news.cnntp.org> wrote:

> is it possible to load an animated gif frame-by-frame ?

javax.imageio.ImageReader

Andrew Thompson

unread,
Nov 30, 2009, 8:56:47 PM11/30/09
to
On Nov 30, 9:47 pm, Thorsten Kiefer <cylin...@news.cnntp.org> wrote:
> ..is it possible to load an animated gif frame-by-frame ?

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

markspace

unread,
Dec 1, 2009, 8:35:33 AM12/1/09
to


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.

0 new messages