Package org.apache.pdfbox.jbig2
Interface Region
-
- All Superinterfaces:
SegmentData
- All Known Implementing Classes:
GenericRefinementRegion,GenericRegion,HalftoneRegion,TextRegion
public interface Region extends SegmentData
Interface for all JBIG2 region segments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitmapgetRegionBitmap()Decodes and returns a regions content.RegionSegmentInformationgetRegionInfo()Simply returns theRegionSegmentInformation.-
Methods inherited from interface org.apache.pdfbox.jbig2.SegmentData
init
-
-
-
-
Method Detail
-
getRegionBitmap
Bitmap getRegionBitmap() throws java.io.IOException, IntegerMaxValueException, InvalidHeaderValueException
Decodes and returns a regions content.- Returns:
- The decoded region as
Bitmap. - Throws:
java.io.IOException- if an underlying IO operation failsIntegerMaxValueException- if the maximum value limit of an integer is exceededInvalidHeaderValueException- if the segment header value is invalid
-
getRegionInfo
RegionSegmentInformation getRegionInfo()
Simply returns theRegionSegmentInformation.- Returns:
- The
RegionSegmentInformation.
-
-