MemoryImageSource Members

MemoryImageSource Members

Class Overview | This Package | All Packages

Constructors
Name Description
MemoryImageSource(int, int, ColorModel, byte[], int, int) Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.
MemoryImageSource(int, int, ColorModel, byte[], int, int, Hashtable) Constructs an ImageProducer object which uses an array of bytes to produce data for an Image object.
MemoryImageSource(int, int, ColorModel, int[], int, int) Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.
MemoryImageSource(int, int, ColorModel, int[], int, int, Hashtable) Constructs an ImageProducer object which uses an array of integers to produce data for an Image object.
MemoryImageSource(int, int, int[], int, int) Constructs an ImageProducer object which uses an array of integers in the default RGB ColorModel to produce data for an Image object.
MemoryImageSource(int, int, int[], int, int, Hashtable) Constructs an ImageProducer object which uses an array of integers in the default RGB ColorModel to produce data for an Image object.

Methods
Name Description
addConsumer(ImageConsumer) Adds an ImageConsumer to the list of consumers interested in data for this image.
isConsumer(ImageConsumer) Determine if an ImageConsumer is on the list of consumers currently interested in data for this image.
newPixels() Send a whole new buffer of pixels to any ImageConsumers that are currently interested in the data for this image and notify them that an animation frame is complete.
newPixels(byte[], ColorModel, int, int) Change to a new byte array to hold the pixels for this image.
newPixels(int, int, int, int) Send a rectangular region of the buffer of pixels to any ImageConsumers that are currently interested in the data for this image and notify them that an animation frame is complete.
newPixels(int, int, int, int, boolean) Send a rectangular region of the buffer of pixels to any ImageConsumers that are currently interested in the data for this image.
newPixels(int[], ColorModel, int, int) Change to a new int array to hold the pixels for this image.
removeConsumer(ImageConsumer) Remove an ImageConsumer from the list of consumers interested in data for this image.
requestTopDownLeftRightResend(ImageConsumer) Requests that a given ImageConsumer have the image data delivered one more time in top-down, left-right order.
setAnimated(boolean) Change this memory image into a multi-frame animation or a single-frame static image depending on the animated parameter.
setFullBufferUpdates(boolean) Specify whether this animated memory image should always be updated by sending the complete buffer of pixels whenever there is a change.
startProduction(ImageConsumer) Adds an ImageConsumer to the list of consumers interested in data for this image, and immediately start delivery of the image data through the ImageConsumer interface.