com.itextpdf.text.pdf.codec
Class PngWriter
java.lang.Object
com.itextpdf.text.pdf.codec.PngWriter
public class PngWriter
- extends Object
Writes a PNG image.
- Since:
- 5.0.3
- Author:
- Paulo Soares
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PngWriter
public PngWriter(OutputStream outp)
throws IOException
- Throws:
IOException
writeHeader
public void writeHeader(int width,
int height,
int bitDepth,
int colorType)
throws IOException
- Throws:
IOException
writeEnd
public void writeEnd()
throws IOException
- Throws:
IOException
writeData
public void writeData(byte[] data,
int stride)
throws IOException
- Throws:
IOException
writePalette
public void writePalette(byte[] data)
throws IOException
- Throws:
IOException
writeIccProfile
public void writeIccProfile(byte[] data)
throws IOException
- Throws:
IOException
outputInt
public void outputInt(int n)
throws IOException
- Throws:
IOException
outputInt
public static void outputInt(int n,
OutputStream s)
throws IOException
- Throws:
IOException
writeChunk
public void writeChunk(byte[] chunkType,
byte[] data)
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.