MemoryImageSource.setAnimated

MemoryImageSource.setAnimated

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void setAnimated( boolean animated )
Parameters
animated
true if the image is a multi-frame animation
Description
Change this memory image into a multi-frame animation or a single-frame static image depending on the animated parameter.

This method should be called immediately after the MemoryImageSource is constructed and before an image is created with it to ensure that all ImageConsumers will receive the correct multi-frame data. If an ImageConsumer is added to this ImageProducer before this flag is set then that ImageConsumer will see only a snapshot of the pixel data that was available when it connected.