org.jmol.export.image
public class PpmEncoder extends ImageEncoder
out
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
PpmEncoder(Image img,
OutputStream out) |
PpmEncoder(ImageProducer prod,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
encodeDone() |
(package private) void |
encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize) |
(package private) void |
encodeStart(int width,
int height) |
static byte[] |
getBytes(Image image) |
static void |
write(Image image,
OutputStream os) |
(package private) static void |
writeString(OutputStream out,
String str) |
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties
public PpmEncoder(Image img, OutputStream out)
public PpmEncoder(ImageProducer prod, OutputStream out)
public static byte[] getBytes(Image image)
public static void write(Image image, OutputStream os) throws IOException
IOException
void encodeStart(int width, int height) throws IOException
encodeStart
in class ImageEncoder
IOException
static void writeString(OutputStream out, String str) throws IOException
IOException
void encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize) throws IOException
encodePixels
in class ImageEncoder
IOException
void encodeDone() throws IOException
encodeDone
in class ImageEncoder
IOException