Top Description Methods
org.apache.pdfbox.jbig2

public Interface Region

extends SegmentData
Known Direct Implementers
org.apache.pdfbox.jbig2.segments.GenericRefinementRegion, org.apache.pdfbox.jbig2.segments.GenericRegion, org.apache.pdfbox.jbig2.segments.HalftoneRegion, org.apache.pdfbox.jbig2.segments.TextRegion
Imports
java.io.IOException, org.apache.pdfbox.jbig2.err.IntegerMaxValueException, .InvalidHeaderValueException, org.apache.pdfbox.jbig2.segments.RegionSegmentInformation

Interface for all JBIG2 region segments.

Method Summary

Modifier and TypeMethod and Description
public Bitmap

Returns:

The decoded region as Bitmap.
getRegionBitmap
()

Decodes and returns a regions content.

public RegionSegmentInformation
Inherited from org.apache.pdfbox.jbig2.SegmentData:
init

Method Detail

getRegionBitmapback to summary
public Bitmap getRegionBitmap() throws IOException, IntegerMaxValueException, InvalidHeaderValueException

Decodes and returns a regions content.

Returns:Bitmap

The decoded region as Bitmap.

Exceptions
IOException:
if an underlying IO operation fails
IntegerMaxValueException:
if the maximum value limit of an integer is exceeded
InvalidHeaderValueException:
if the segment header value is invalid
getRegionInfoback to summary
public RegionSegmentInformation getRegionInfo()

Simply returns the RegionSegmentInformation.

Returns:RegionSegmentInformation

The RegionSegmentInformation.