Package com.itextpdf.io.image
Class Jbig2ImageData
- java.lang.Object
-
- com.itextpdf.io.image.ImageData
-
- com.itextpdf.io.image.Jbig2ImageData
-
public class Jbig2ImageData extends ImageData
-
-
Field Summary
Fields Modifier and Type Field Description private int
page
-
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
Constructors Modifier Constructor Description protected
Jbig2ImageData(byte[] bytes, int page)
protected
Jbig2ImageData(java.net.URL url, int page)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImageBeInline()
Checks if image can be inlinestatic int
getNumberOfPages(byte[] bytes)
Gets the number of pages in a JBIG2 image.static int
getNumberOfPages(RandomAccessFileOrArray raf)
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, loadData, makeMask, setBpc, setColorEncodingComponentsNumber, setColorTransform, setDecode, setDeflated, setDpi, setFilter, setHeight, setImageAttributes, setImageMask, setInterpolation, setInverted, setProfile, setRotation, setTransparency, setUrl, setWidth, setXYRatio
-
-
-
-
Method Detail
-
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
public static int getNumberOfPages(RandomAccessFileOrArray raf)
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
-
-