org.freehep.graphicsio.ps
Class EPSIEncoder
java.lang.Object
org.freehep.graphicsio.ImageEncoder
org.freehep.graphicsio.ps.EPSIEncoder
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
public class EPSIEncoder
- extends ImageEncoder
- Version:
- $Id: EPSIEncoder.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Charles Loomis
Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Constructor Summary |
EPSIEncoder(java.awt.Image img,
java.io.OutputStream out,
int grayscaleBits,
boolean portrait)
Constructor from Image with number of grayscale bits to use. |
EPSIEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out,
int grayscaleBits,
boolean portrait)
Constructor from ImageProducer with number of grayscale bits to use. |
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(java.awt.Image img,
java.io.OutputStream out,
int grayscaleBits,
boolean portrait)
throws java.io.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:
java.io.IOException
EPSIEncoder
public EPSIEncoder(java.awt.image.ImageProducer prod,
java.io.OutputStream out,
int grayscaleBits,
boolean portrait)
throws java.io.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:
java.io.IOException
encodeStart
protected void encodeStart(int width,
int height)
throws java.io.IOException
- Specified by:
encodeStart
in class ImageEncoder
- Throws:
java.io.IOException
encodePixels
protected void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws java.io.IOException
- Specified by:
encodePixels
in class ImageEncoder
- Throws:
java.io.IOException
encodeDone
protected void encodeDone()
throws java.io.IOException
- Specified by:
encodeDone
in class ImageEncoder
- Throws:
java.io.IOException
Copyright © 2000-2007 FreeHEP. All Rights Reserved.