BufferedImage and animated gifs

I swore there used to be a method that allowed a person to go through each frame of an image.

I was looking for it for at least an hour and I still can’t find it, there isn’t anything in the Javadoc about it either.

Maybe I was just hallucinating about it before?

Even so, is there an image class that handles frames within an image?
I can’t find anything on this, people tend to load animated images by saving a copy of each frame and then hardcoding the file names. :lol:

Personally I find that a very silly and time consuming thing to do.
Thanks.

Usually people use sprite sheets. Those are single images which contain all frames next to each other.

Eg you can put 64 frames of a 32x32px sprite into a 512x512px image.

[quote]Usually people use sprite sheets. Those are single images which contain all frames next to each other.

Eg you can put 64 frames of a 32x32px sprite into a 512x512px image.
[/quote]
Good idea, thanks for that.

javax.imageio.ImageReader handles image files containing multiple frames.