public interface ImageConsumer 
      ImageProducer 
       | Modifier and Type | Field and Description | 
|---|---|
| static int | COMPLETESCANLINES
              像素将以完整的扫描线一次传输(倍数)。 
             | 
| static int | IMAGEABORTED
              图像创建过程故意中止。 
             | 
| static int | IMAGEERROR
              生成图像时遇到错误。 
             | 
| static int | RANDOMPIXELORDER
              像素将以随机顺序递送。 
             | 
| static int | SINGLEFRAME
              该图像包含一个静态图像。 
             | 
| static int | SINGLEFRAMEDONE
              图像的一帧是完整的,但是有更多的帧被传送。 
             | 
| static int | SINGLEPASS
              像素将以单次传递方式传送。 
             | 
| static int | STATICIMAGEDONE
              图像是完整的,没有更多的像素或帧要交付。 
             | 
| static int | TOPDOWNLEFTRIGHT
              像素将以自上而下的从左到右的顺序传递。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| void | imageComplete(int status)
              当ImageProducer完成传送源图像所包含的所有像素时,或者当多帧动画的单帧已经完成时,或者当加载或生成图像发生错误时,将调用imageComplete方法。 
             | 
| void | setColorModel(ColorModel model)
              设置使用setPixels方法调用报告的大多数像素使用的ColorModel对象。 
             | 
| void | setDimensions(int width, int height)
              使用setDimensions方法调用来报告源图像的尺寸。 
             | 
| void | setHints(int hintflags)
              设置ImageConsumer用于处理ImageProducer传递的像素的提示。 
             | 
| void | setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
              通过一次或多次调用该方法来提供图像的像素。 
             | 
| void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
              使用对setPixels方法的一个或多个调用来传送图像的像素。 
             | 
| void | setProperties(Hashtable<?,?> props)
              设置与此映像关联的属性的可扩展列表。 
             | 
static final int RANDOMPIXELORDER
setHints(int) , 
            Constant Field Values 
           static final int TOPDOWNLEFTRIGHT
setHints(int) , 
            Constant Field Values 
           static final int COMPLETESCANLINES
setHints(int) , 
            Constant Field Values 
           static final int SINGLEPASS
setHints(int) , 
            Constant Field Values 
           static final int SINGLEFRAME
static final int IMAGEERROR
static final int SINGLEFRAMEDONE
static final int STATICIMAGEDONE
static final int IMAGEABORTED
void setDimensions(int width,
                   int height) 
          width - 源图像的宽度 
           height - 源图像的高度 
           void setProperties(Hashtable<?,?> props)
props - 要与此映像 
            props的属性列表 
           void setColorModel(ColorModel model)
model - 指定的 
            ColorModel 
           ColorModel 
           void setHints(int hintflags)
hintflags - ImageConsumer用于处理像素的一组提示 
           void setPixels(int x,
               int y,
               int w,
               int h,
               ColorModel model,
               byte[] pixels,
               int off,
               int scansize) 
          x - 要设置的像素区域的左上角的X坐标 
           y - 要设置的像素区域的左上角的Y坐标 
           w - 像素面积的宽度 
           h - 像素面积的高度 
           model - 指定的 
            ColorModel 
           pixels - 像素数组 
           off - 偏移到 
            pixels数组 
           scansize - 
            pixels阵列中从一行像素到下一行的距离 
           ColorModel 
           void setPixels(int x,
               int y,
               int w,
               int h,
               ColorModel model,
               int[] pixels,
               int off,
               int scansize) 
          x - 要设置的像素区域的左上角的X坐标 
           y - 要设置的像素区域的左上角的Y坐标 
           w - 像素面积的宽度 
           h - 像素面积的高度 
           model - 指定的 
            ColorModel 
           pixels - 像素数组 
           off - 偏移到 
            pixels数组 
           scansize - 
            pixels数组中的一行像素到下一行的距离 
           ColorModel 
           void imageComplete(int status)
status - 图像加载状态 
           ImageProducer.removeConsumer(java.awt.image.ImageConsumer) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.