public class PngWriter extends Object
Constructor and Description |
---|
PngWriter(OutputStream outp) |
Modifier and Type | Method and Description |
---|---|
void |
outputInt(int n) |
static void |
outputInt(int n, 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(OutputStream outp) throws IOException
IOException
public void writeHeader(int width, int height, int bitDepth, int colorType) throws IOException
IOException
public void writeEnd() throws IOException
IOException
public void writeData(byte[] data, int stride) throws IOException
IOException
public void writePalette(byte[] data) throws IOException
IOException
public void writeIccProfile(byte[] data) throws IOException
IOException
public void outputInt(int n) throws IOException
IOException
public static void outputInt(int n, OutputStream s) throws IOException
IOException
public void writeChunk(byte[] chunkType, byte[] data) throws IOException
IOException
Copyright © 2016. All rights reserved.