org.freehep.graphicsio.ps
Class EPSIEncoder
java.lang.Object
org.freehep.graphicsio.ImageEncoder
org.freehep.graphicsio.ps.EPSIEncoder
- All Implemented Interfaces:
- ImageConsumer
public class EPSIEncoder
- extends ImageEncoder
- Version:
- $Id: freehep-graphicsio-ps/src/main/java/org/freehep/graphicsio/ps/EPSIEncoder.java f24bd43ca24b 2005/12/02 00:39:35 duns $
- Author:
- Charles Loomis
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPSIEncoder
public EPSIEncoder(Image img,
OutputStream out,
int grayscaleBits,
boolean portrait)
throws IOException
- Constructor from Image with number of grayscale bits to use.
- Parameters:
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.
- Throws:
IOException
EPSIEncoder
public EPSIEncoder(ImageProducer prod,
OutputStream out,
int grayscaleBits,
boolean portrait)
throws IOException
- Constructor from ImageProducer with number of grayscale bits to use.
- Parameters:
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.
- Throws:
IOException
encodeStart
protected void encodeStart(int width,
int height)
throws IOException
- Specified by:
encodeStart in class ImageEncoder
- Throws:
IOException
encodePixels
protected void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws IOException
- Specified by:
encodePixels in class ImageEncoder
- Throws:
IOException
encodeDone
protected void encodeDone()
throws IOException
- Specified by:
encodeDone in class ImageEncoder
- Throws:
IOException
Copyright © 2014. All rights reserved.