public class EPSIEncoder extends ImageEncoder
out, propsCOMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description |
|---|
EPSIEncoder(Image img,
OutputStream out,
int grayscaleBits,
boolean portrait)
Constructor from Image with number of grayscale bits to use.
|
EPSIEncoder(ImageProducer prod,
OutputStream out,
int grayscaleBits,
boolean portrait)
Constructor from ImageProducer with number of grayscale bits to use.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeDone() |
protected void |
encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize) |
protected void |
encodeStart(int width,
int height) |
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setPropertiespublic EPSIEncoder(Image img, OutputStream out, int grayscaleBits, boolean portrait) throws IOException
img - The image to encode.out - The stream to write the GIF to.grayscaleBits - Number of grayscale bits to use.portrait - Flag indicating a portrait orientation.IOExceptionpublic EPSIEncoder(ImageProducer prod, OutputStream out, int grayscaleBits, boolean portrait) throws IOException
prod - The ImageProducer to encode.out - The stream to write the GIF to.grayscaleBits - Number of grayscale bits to use.portrait - Flag indicating a portrait orientation.IOExceptionprotected void encodeStart(int width,
int height)
throws IOException
encodeStart in class ImageEncoderIOExceptionprotected void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws IOException
encodePixels in class ImageEncoderIOExceptionprotected void encodeDone()
throws IOException
encodeDone in class ImageEncoderIOExceptionCopyright © 2014. All rights reserved.