ImageConsumer
interface is less common. Whereas an ImageProducer
only tells an ImageObserver
that more of the image is ready, an ImageProducer
gives an interested ImageConsumer
the actual image data. ImageConsumer
defines these methods:
public abstract void setDimensions(int width, int height)
public abstract void setProperties(Hashtable props)
public abstract void setColorModel(ColorModel model)
public abstract void setHints(int hintflags)
public abstract void setPixels(int x, int y, int width, int height,
ColorModel model, byte[] pixels, int off, int scansize)
public abstract void setPixels(int x, int y, int width, int height,
ColorModel model, int[] pixels, int off, int scansize)
public abstract void imageComplete(int status)