|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.graphics.codec.png.PNGEncoder
public class PNGEncoder
| Constructor Summary | |
|---|---|
PNGEncoder(int width,
int height)
A handy default constructor. |
|
| Method Summary | |
|---|---|
void |
encodeImage(java.awt.Image nimage,
java.io.OutputStream out)
|
void |
encodeImage(java.awt.Image nimage,
java.lang.String filename)
|
void |
grabPixels()
Grabs a line of pixels into the pixels array |
void |
writeImageChunk()
this is the strangest of them all but somehow works!!! this uses the zlib compression and several buffers to write the non filtered data to the outfile stream |
void |
writePNGEnd()
this will write the "trailer" for the PNG file |
void |
writePNGHeader()
this will write the identifier for png files this should always happen first |
void |
writePNGImageHeader()
this will write the image header for the image including default simple settings and specifing the image characteristics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PNGEncoder(int width,
int height)
| Method Detail |
|---|
public void encodeImage(java.awt.Image nimage,
java.lang.String filename)
throws java.io.IOException
encodeImage in interface ImageEncoderjava.io.IOException
public void encodeImage(java.awt.Image nimage,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public void writePNGImageHeader()
throws java.io.IOException
java.io.IOException
public void writePNGHeader()
throws java.io.IOException
java.io.IOException
public void grabPixels()
throws java.io.IOException
java.io.IOException
public void writeImageChunk()
throws java.io.IOException
java.io.IOException
public void writePNGEnd()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||