|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.util3d.PPMWriter
This class acts as an ImageConsumer that writes out data pumped into it to a file in the Portable Pixmap Format ( PPM ). This class is primarily used in conjunction with the image production capabilities of GLDrawable / GLComponent classes allowing developers to dump frame-by-frame copies of OpenGL framebuffers simply.
Field Summary | |
static int |
IMAGENUMBER
Unique image number. |
Constructor Summary | |
PPMWriter(java.awt.image.ImageProducer producer)
Default constructor that'll create files with ``ppmwriter'' prefix |
|
PPMWriter(java.awt.image.ImageProducer producer,
java.lang.String prefix)
Constructor that sets the prefix for output files' names to the given string |
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 |
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 PPMWriter(java.awt.image.ImageProducer producer)
public PPMWriter(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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |