All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.util3d.EPSWriter
Summary |
public class EPSWriter extends java.lang.Object implements java.awt.image.ImageConsumer { // Fields 1 public static int IMAGENUMBER; // Constructors 2 public EPSWriter(ImageProducer); public EPSWriter(ImageProducer, String); // Methods 8 public void imageComplete(int); public void setColorModel(ColorModel); public void setDimensions(int, int); public void setHints(int); public void setPixels(int, int, int, int, ColorModel, byte[], int, int); public void setPixels(int, int, int, int, ColorModel, int[], int, int); public void setProperties(Hashtable); public String toHex(int); }
This class is an ImageConsumer that can be used to write out any ImageProducer's output in the form of Encapsulated PostScript. This class should be used in conjunction with the image production capabilities of GLComponent / GLDrawable components to produce high-quality PostScript output from OpenGL framebuffers.
Fields |
· IMAGENUMBER | Summary | Top |
public static int IMAGENUMBER
Unique image number. Auto-incrememented after writes
Constructors |
· EPSWriter | Summary | Top |
public EPSWriter(ImageProducer producer)
Default constructor which will write files out with an ``epswriter'' prefix
· EPSWriter | Summary | Top |
public EPSWriter(ImageProducer producer, String prefix)
Constructor which specifies the prefix with which output files are created with
Methods |
· imageComplete | Summary | Top |
public void imageComplete(int status)
Called when the image being transmitted is now complete
- Implements:
- imageComplete in interface ImageConsumer
· setColorModel | Summary | Top |
public void setColorModel(ColorModel model)
Sets the colour model being used by the image
- Implements:
- setColorModel in interface ImageConsumer
· setDimensions | Summary | Top |
public void setDimensions(int width, int height)
Sets the dimensions of the image being consumed
- Implements:
- setDimensions in interface ImageConsumer
· setHints | Summary | Top |
public void setHints(int hints)
Sets the hints as to pixel delivery order
- Implements:
- setHints in interface ImageConsumer
· setPixels | Summary | Top |
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int offset, int scanSize)
Pixel delivery
- Implements:
- setPixels in interface ImageConsumer
· setPixels | Summary | Top |
public void setPixels(int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scanSize)
Pixel delivery
- Implements:
- setPixels in interface ImageConsumer
· setProperties | Summary | Top |
public void setProperties(Hashtable props)
Sets the properties of the image
- Implements:
- setProperties in interface ImageConsumer
· toHex | Summary | Top |
public String toHex(int number)
Converts a number to a hexadecimal string
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7