|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.export.image.ImageEncoder
org.jmol.export.image.PpmEncoder
public class PpmEncoder
| Field Summary |
|---|
| Fields inherited from class org.jmol.export.image.ImageEncoder |
|---|
out |
| Fields inherited from interface java.awt.image.ImageConsumer |
|---|
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
| Constructor Summary | |
|---|---|
PpmEncoder(Image img,
OutputStream out)
|
|
PpmEncoder(ImageProducer prod,
OutputStream out)
|
|
| Method Summary | |
|---|---|
(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)
|
| Methods inherited from class org.jmol.export.image.ImageEncoder |
|---|
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PpmEncoder(Image img,
OutputStream out)
public PpmEncoder(ImageProducer prod,
OutputStream out)
| Method Detail |
|---|
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 ImageEncoderIOException
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 ImageEncoderIOException
void encodeDone()
throws IOException
encodeDone in class ImageEncoderIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||