public abstract class ImageEncoder extends Object implements ImageConsumer
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
out |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
ImageEncoder(Image img,
OutputStream out) |
ImageEncoder(ImageProducer producer,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
encode() |
void |
imageComplete(int status) |
void |
setColorModel(ColorModel model) |
void |
setDimensions(int width,
int height) |
void |
setHints(int hintflags) |
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) |
void |
setProperties(Hashtable props) |
protected OutputStream out
public ImageEncoder(Image img, OutputStream out) throws IOException
IOException
public ImageEncoder(ImageProducer producer, OutputStream out) throws IOException
IOException
public void encode() throws IOException
IOException
public void setDimensions(int width, int height)
setDimensions
in interface ImageConsumer
public void setProperties(Hashtable props)
setProperties
in interface ImageConsumer
public void setColorModel(ColorModel model)
setColorModel
in interface ImageConsumer
public void setHints(int hintflags)
setHints
in interface ImageConsumer
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
setPixels
in interface ImageConsumer
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
setPixels
in interface ImageConsumer
public void imageComplete(int status)
imageComplete
in interface ImageConsumer
Copyright © 1999–2019 ViaOA. All rights reserved.