com.pdfjet
Class PNGImage

java.lang.Object
  extended by com.pdfjet.PNGImage

public class PNGImage
extends java.lang.Object

Used to embed PNG images in the PDF document.

Please note:

Interlaced images are not supported.

To convert interlaced image to non-interlaced image use OptiPNG:

optipng -i0 -o7 myimage.png


Constructor Summary
PNGImage(java.io.InputStream inputStream)
          Used to embed PNG images in the PDF document.
 
Method Summary
 byte[] getAlpha()
           
 int getBitDepth()
           
 int getColorType()
           
 byte[] getData()
           
 int getHeight()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGImage

public PNGImage(java.io.InputStream inputStream)
         throws java.lang.Exception
Used to embed PNG images in the PDF document.

Throws:
java.lang.Exception
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getColorType

public int getColorType()

getBitDepth

public int getBitDepth()

getData

public byte[] getData()

getAlpha

public byte[] getAlpha()