|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.util3d.EPSWriter
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.
Field Summary | |
static int |
IMAGENUMBER
Unique image number. |
Constructor Summary | |
EPSWriter(java.awt.image.ImageProducer producer)
Default constructor which will write files out with an ``epswriter'' prefix |
|
EPSWriter(java.awt.image.ImageProducer producer,
java.lang.String prefix)
Constructor which specifies the prefix with which output files are created with |
Method Summary | |
void |
imageComplete(int status)
Called when the image being transmitted is now complete |
void |
setColorModel(java.awt.image.ColorModel model)
Sets the colour model being used by the image |
void |
setDimensions(int width,
int height)
Sets the dimensions of the image being consumed |
void |
setHints(int hints)
Sets the hints as to pixel delivery order |
void |
setPixels(int x,
int y,
int width,
int height,
java.awt.image.ColorModel model,
byte[] pixels,
int offset,
int scanSize)
Pixel delivery |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int offset,
int scanSize)
Pixel delivery |
void |
setProperties(java.util.Hashtable props)
Sets the properties of the image |
java.lang.String |
toHex(int number)
Converts a number to a hexadecimal string |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int IMAGENUMBER
Constructor Detail |
public EPSWriter(java.awt.image.ImageProducer producer)
public EPSWriter(java.awt.image.ImageProducer producer, java.lang.String prefix)
Method Detail |
public void imageComplete(int status)
public void setColorModel(java.awt.image.ColorModel model)
public void setDimensions(int width, int height)
public void setHints(int hints)
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int offset, int scanSize)
public void setPixels(int x, int y, int width, int height, java.awt.image.ColorModel model, byte[] pixels, int offset, int scanSize)
public void setProperties(java.util.Hashtable props)
public java.lang.String toHex(int number)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |