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 voidfindColorspace(PdfObject csObj, boolean checkIndexedBase) Sets state of this object according to the color spaceintprivate 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 usecheckIndexedBase- whether base of indexed color space is currently resolved or not
-