Package com.itextpdf.io.image
Class Jbig2ImageData
java.lang.Object
com.itextpdf.io.image.ImageData
com.itextpdf.io.image.Jbig2ImageData
-
Field Summary
Fields inherited from class com.itextpdf.io.image.ImageData
bpc, colorEncodingComponentsNumber, colorTransform, data, decode, decodeParms, deflated, dpiX, dpiY, filter, height, imageAttributes, imageMask, imageSize, interpolation, inverted, mask, mySerialId, originalType, profile, rotation, transparency, url, width, XYRatio
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jbig2ImageData
(byte[] bytes, int page) protected
Jbig2ImageData
(URL url, int page) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if image can be inlinestatic int
getNumberOfPages
(byte[] bytes) Gets the number of pages in a JBIG2 image.static int
Gets the number of pages in a JBIG2 image.int
getPage()
Methods inherited from class com.itextpdf.io.image.ImageData
canBeMask, getBpc, getColorEncodingComponentsNumber, getColorTransform, getData, getDecode, getDecodeParms, getDpiX, getDpiY, getFilter, getHeight, getImageAttributes, getImageMask, getOriginalType, getProfile, getRotation, getTransparency, getUrl, getWidth, getXYRatio, isDeflated, isInterpolation, isInverted, isMask, isRawImage, isSoftMask, makeMask, setBpc, setColorEncodingComponentsNumber, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
-
Constructor Details
-
Jbig2ImageData
-
Jbig2ImageData
protected Jbig2ImageData(byte[] bytes, int page)
-
-
Method Details
-
getPage
public int getPage() -
getNumberOfPages
public static int getNumberOfPages(byte[] bytes) Gets the number of pages in a JBIG2 image.- Parameters:
-
bytes
- a byte array containing a JBIG2 image - Returns:
- the number of pages
-
getNumberOfPages
Gets the number of pages in a JBIG2 image.- Parameters:
-
raf
- aRandomAccessFileOrArray
containing a JBIG2 image - Returns:
- the number of pages
-
canImageBeInline
public boolean canImageBeInline()Description copied from class:ImageData
Checks if image can be inline- Overrides:
-
canImageBeInline
in classImageData
- Returns:
- if the image can be inline
-