Package com.itextpdf.kernel.pdf.xobject
Class ImagePdfBytesInfo
- java.lang.Object
-
- com.itextpdf.kernel.pdf.xobject.ImagePdfBytesInfo
-
class ImagePdfBytesInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
bpc
private PdfObject
colorspace
private PdfArray
decode
private int
height
private byte[]
icc
private byte[]
palette
private int
pngBitDepth
private int
pngColorType
private int
stride
private static java.lang.String
TIFFTAG_SOFTWARE_VALUE
private int
width
-
Constructor Summary
Constructors Constructor Description ImagePdfBytesInfo(PdfImageXObject imageXObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decodeTiffAndPngBytes(byte[] imageBytes)
private void
findColorspace(PdfObject csObj, boolean checkIndexedBase)
Sets state of this object according to the color spaceint
getPngColorType()
private byte[]
processPng(byte[] imageBytes, int pngBitDepth, int pngColorType)
private byte[]
processSeperationColor(byte[] imageBytes, PdfArray colorSpaceArray)
-
-
-
Field Detail
-
TIFFTAG_SOFTWARE_VALUE
private static final java.lang.String TIFFTAG_SOFTWARE_VALUE
-
bpc
private final int bpc
-
width
private final int width
-
height
private final int height
-
colorspace
private final PdfObject colorspace
-
decode
private final PdfArray decode
-
pngColorType
private int pngColorType
-
pngBitDepth
private int pngBitDepth
-
palette
private byte[] palette
-
icc
private byte[] icc
-
stride
private int stride
-
-
Constructor Detail
-
ImagePdfBytesInfo
public ImagePdfBytesInfo(PdfImageXObject imageXObject)
-
-
Method Detail
-
getPngColorType
public int getPngColorType()
-
decodeTiffAndPngBytes
public byte[] decodeTiffAndPngBytes(byte[] imageBytes) throws java.io.IOException
- Throws:
java.io.IOException
-
processSeperationColor
private byte[] processSeperationColor(byte[] imageBytes, PdfArray colorSpaceArray) throws java.io.IOException
- Throws:
java.io.IOException
-
processPng
private byte[] processPng(byte[] imageBytes, int pngBitDepth, int pngColorType) throws java.io.IOException
- Throws:
java.io.IOException
-
findColorspace
private void findColorspace(PdfObject csObj, boolean checkIndexedBase)
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
-
-