Package com.itextpdf.kernel.pdf.xobject
Class ImagePdfBytesInfo
java.lang.Object
com.itextpdf.kernel.pdf.xobject.ImagePdfBytesInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decodeTiffAndPngBytes
(byte[] imageBytes) private void
findColorspace
(PdfObject csObj, boolean allowIndexed) Sets state of this object according to the color spaceint
private byte[]
processPng
(byte[] imageBytes, int pngBitDepth, int pngColorType) private byte[]
processSeperationColor
(byte[] imageBytes, PdfArray colorSpaceArray)
-
Field Details
-
TIFFTAG_SOFTWARE_VALUE
-
bpc
private final int bpc -
width
private final int width -
height
private final int height -
colorspace
-
decode
-
pngColorType
private int pngColorType -
pngBitDepth
private int pngBitDepth -
palette
private byte[] palette -
icc
private byte[] icc -
stride
private int stride
-
-
Constructor Details
-
ImagePdfBytesInfo
-
-
Method Details
-
getPngColorType
public int getPngColorType() -
decodeTiffAndPngBytes
- Throws:
IOException
-
processSeperationColor
private byte[] processSeperationColor(byte[] imageBytes, PdfArray colorSpaceArray) throws IOException - Throws:
IOException
-
processPng
- Throws:
IOException
-
findColorspace
Sets state of this object according to the color space- Parameters:
csObj
- the colorspace to useallowIndexed
- whether indexed color spaces will be resolved (used for recursive call)- Throws:
IOException
- if there is a problem with reading from the underlying stream
-