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: EPSIEncoder.java,v 1.2 2003/04/30 00:24:08 duns Exp $
- Author:
- Charles Loomis
- Source Code:
- EPSIEncoder.java
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.
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.
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 © 2000-2004 FreeHEP, All Rights Reserved.