public abstract class ImageEncoder
extends java.lang.Object
implements java.awt.image.ImageConsumer
限定符和类型 | 字段和说明 |
---|---|
protected java.io.OutputStream |
out |
构造器和说明 |
---|
ImageEncoder(java.awt.Image img,
java.io.OutputStream out) |
ImageEncoder(java.awt.image.ImageProducer producer,
java.io.OutputStream out) |
限定符和类型 | 方法和说明 |
---|---|
void |
encode() |
void |
imageComplete(int status) |
void |
setColorModel(java.awt.image.ColorModel model) |
void |
setDimensions(int width,
int height) |
void |
setHints(int hintflags) |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize) |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize) |
void |
setProperties(java.util.Hashtable props) |
public ImageEncoder(java.awt.Image img, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public ImageEncoder(java.awt.image.ImageProducer producer, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void encode() throws java.io.IOException
java.io.IOException
public void setDimensions(int width, int height)
setDimensions
在接口中 java.awt.image.ImageConsumer
public void setProperties(java.util.Hashtable props)
setProperties
在接口中 java.awt.image.ImageConsumer
public void setColorModel(java.awt.image.ColorModel model)
setColorModel
在接口中 java.awt.image.ImageConsumer
public void setHints(int hintflags)
setHints
在接口中 java.awt.image.ImageConsumer
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scansize)
setPixels
在接口中 java.awt.image.ImageConsumer
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int off, int scansize)
setPixels
在接口中 java.awt.image.ImageConsumer
public void imageComplete(int status)
imageComplete
在接口中 java.awt.image.ImageConsumer