Modifier and Type | Field and Description |
---|---|
private static long[] |
crc_table |
private static byte[] |
iCCP |
private static byte[] |
IDAT |
private static byte[] |
IEND |
private static byte[] |
IHDR |
private OutputStream |
outp |
private static byte[] |
PLTE |
private static byte[] |
PNG_SIGNTURE |
Constructor and Description |
---|
PngWriter(OutputStream outp) |
Modifier and Type | Method and Description |
---|---|
private static long |
crc(byte[] buf) |
private static long |
crc(byte[] buf,
int offset,
int len) |
private static void |
make_crc_table() |
void |
outputInt(int n) |
static void |
outputInt(int n,
OutputStream s) |
private static long |
update_crc(long crc,
byte[] buf,
int offset,
int len) |
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) |
private static final byte[] PNG_SIGNTURE
private static final byte[] IHDR
private static final byte[] PLTE
private static final byte[] IDAT
private static final byte[] IEND
private static final byte[] iCCP
private static long[] crc_table
private OutputStream outp
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
private static void make_crc_table()
private static long update_crc(long crc, byte[] buf, int offset, int len)
private static long crc(byte[] buf, int offset, int len)
private static long crc(byte[] buf)
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
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses