public class PngWriter
extends java.lang.Object
构造器和说明 |
---|
PngWriter(java.io.OutputStream outp) |
限定符和类型 | 方法和说明 |
---|---|
void |
outputInt(int n) |
static void |
outputInt(int n,
java.io.OutputStream s) |
void |
writeChunk(byte[] chunkType,
byte[] data) |
void |
writeData(byte[] data,
int stride) |
void |
writeEnd() |
void |
writeHeader(int width,
int height,
int bitDepth,
int colorType) |
void |
writeIccProfile(byte[] data) |
void |
writePalette(byte[] data) |
public PngWriter(java.io.OutputStream outp) throws java.io.IOException
java.io.IOException
public void writeHeader(int width, int height, int bitDepth, int colorType) throws java.io.IOException
java.io.IOException
public void writeEnd() throws java.io.IOException
java.io.IOException
public void writeData(byte[] data, int stride) throws java.io.IOException
java.io.IOException
public void writePalette(byte[] data) throws java.io.IOException
java.io.IOException
public void writeIccProfile(byte[] data) throws java.io.IOException
java.io.IOException
public void outputInt(int n) throws java.io.IOException
java.io.IOException
public static void outputInt(int n, java.io.OutputStream s) throws java.io.IOException
java.io.IOException
public void writeChunk(byte[] chunkType, byte[] data) throws java.io.IOException
java.io.IOException