Hi Michael,

> Is there a way to access individual frames?

Not directly.  That is one of the things that the Image I/O interface,
currently undergoing the JCP, will solve.  For now, the best you can
do is to listen for when a new frame is available.

The ImageObserver that is passed to drawImage() for the GIF gets notified
when each frame is ready to be drawn via the imageUpdate callback.  It
sounds like you are either using null for the ImageObserver or that you
haven't tied the callback to triggering a repaint of your back buffer.

The example code snippets for drawing an image tend to use "this" as the
ImageObserver where "this" is an AWT Component.  You can look at the
implementation of the ImageObserver interface in java.awt.Component to
get an idea of what happens with the frame notifications for those cases
(it heuristically calls repaint() when certain notifications occur).

                                ...jim

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to