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)
的imagecomplete方法被调用时,imageproducer是送完所有的源图像中包含的像素,或者当一个单一的多帧动画已经完成,或当一个错误发生在加载或产生的图像。
|
void |
setColorModel(ColorModel model)
设置用于像素的大多数报道对象要使用SetPixels方法调用。
|
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
static final int TOPDOWNLEFTRIGHT
static final int COMPLETESCANLINES
static final int SINGLEPASS
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
-性能可能与该图像相关联的列表
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.