ImageConsumerNameImageConsumer
DescriptionImageConsumer is an interface that provides the means to consume pixel data and render it for display. Interface Definition
public abstract interface java.awt.image.ImageConsumer { // Constants public final static int COMPLETESCANLINES; public final static int IMAGEABORTED; public final static int IMAGEERROR; public final static int RANDOMPIXELORDER; public final static int SINGLEFRAME; public final static int SINGLEFRAMEDONE; public final static int SINGLEPASS; public final static int STATICIMAGEDONE; public final static int TOPDOWNLEFTRIGHT; // Interface Methods public abstract void imageComplete (int status); public abstract void setColorModel (ColorModel model); public abstract void setDimensions (int width, int height); public abstract void setHints (int hints); public abstract void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize); public abstract void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize); public abstract void setProperties (Hashtable properties); } ConstantsCOMPLETESCANLINESpublic final static int COMPLETESCANLINESHint flag for the setHints(int) method; indicates that the image will be delivered one or more scanlines at a time. IMAGEABORTEDpublic final static int IMAGEABORTEDStatus flag for the imageComplete(int) method indicating that the loading process for the image aborted. IMAGEERRORpublic final static int IMAGEERRORStatus flag for the imageComplete(int) method indicating that an error happened during image loading. RANDOMPIXELORDERpublic final static int RANDOMPIXELORDERHint flag for the setHints(int) method; indicates that the pixels will be delivered in no particular order. SINGLEFRAMEpublic final static int SINGLEFRAMEHint flag for the setHints(int) method; indicates that the image consists of a single frame. SINGLEFRAMEDONEpublic final static int SINGLEFRAMEDONEStatus flag for the imageComplete(int) method indicating a single frame of the image has loaded. SINGLEPASSpublic final static int SINGLEPASSHint flag for the setHints(int) method; indicates that each pixel will be delivered once (i.e., the producer will not make multiple passes over the image). STATICIMAGEDONEpublic final static int STATICIMAGEDONEStatus flag for the imageComplete(int) method indicating that the image has fully and successfully loaded, and that there are no additional frames. TOPDOWNLEFTRIGHTpublic final static int TOPDOWNLEFTRIGHTHint flag for the setHints(int) method; indicates that pixels will be delivered in a top to bottom, left to right order. Interface MethodsimageCompletepublic abstract void imageComplete (int status)
setColorModelpublic abstract void setColorModel (ColorModel model)
setDimensionspublic abstract void setDimensions (int width, int height)
setHintspublic abstract void setHints (int hints)
setPixelspublic abstract void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize)
public abstract void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize)
setPropertiespublic abstract void setProperties (Hashtable properties)
See AlsoColorModel, Hashtable, ImageFilter, PixelGrabber, Object |
|