Class PngImage
java.lang.Object
com.aowagie.text.pdf.codec.PngImage
Reads a PNG image. All types of PNG can be read.
It is based in part in the JAI codec.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Field Summary
Fields -
Method Summary
-
Field Details
-
PNGID
public static final int[] PNGIDSome PNG specific values.
-
-
Method Details
-
getImage
Reads a PNG from an url.- Parameters:
url- the url- Returns:
- the image
- Throws:
IOException- on error
-
getImage
Reads a PNG from a byte array.- Parameters:
data- the byte array- Returns:
- the image
- Throws:
IOException- on error
-