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 intpage-
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 protectedJbig2ImageData(byte[] bytes, int page)protectedJbig2ImageData(java.net.URL url, int page)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanImageBeInline()Checks if image can be inlinestatic intgetNumberOfPages(byte[] bytes)Gets the number of pages in a JBIG2 image.static intgetNumberOfPages(RandomAccessFileOrArray raf)Gets the number of pages in a JBIG2 image.intgetPage()-
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- aRandomAccessFileOrArraycontaining a JBIG2 image- Returns:
- the number of pages
-
canImageBeInline
public boolean canImageBeInline()
Description copied from class:ImageDataChecks if image can be inline- Overrides:
canImageBeInlinein classImageData- Returns:
- if the image can be inline
-
-