com.itextpdf.text.pdf.codec
Class PngWriter

java.lang.Object
  extended by com.itextpdf.text.pdf.codec.PngWriter

public class PngWriter
extends Object

Writes a PNG image.

Since:
5.0.3
Author:
Paulo Soares

Constructor Summary
PngWriter(OutputStream outp)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PngWriter

public PngWriter(OutputStream outp)
          throws IOException
Throws:
IOException
Method Detail

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.