All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.util3d.PPMWriter
Summary |
public class PPMWriter extends java.lang.Object implements java.awt.image.ImageConsumer { // Fields 1 public static int IMAGENUMBER; // Constructors 2 public PPMWriter(ImageProducer); public PPMWriter(ImageProducer, String); // Methods 7 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); }
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.
Fields |
· IMAGENUMBER | Summary | Top |
public static int IMAGENUMBER
Unique image number. Auto-incrememented after writes
Constructors |
· PPMWriter | Summary | Top |
public PPMWriter(ImageProducer producer)
Default constructor that'll create files with ``ppmwriter'' prefix
· PPMWriter | Summary | Top |
public PPMWriter(ImageProducer producer, String prefix)
Constructor that sets the prefix for output files' names to the given string
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
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7