Class HalftoneRegion
java.lang.Object
org.apache.pdfbox.jbig2.segments.HalftoneRegion
- All Implemented Interfaces:
Region, SegmentData
-
Constructor Summary
ConstructorsConstructorDescriptionHalftoneRegion(SubInputStream subInputStream) HalftoneRegion(SubInputStream subInputStream, SegmentHeader segmentHeader) -
Method Summary
Modifier and TypeMethodDescriptionprotected byteprotected intprotected intprotected intprotected intprotected intprotected intprotected byteThe procedure is described in JBIG2 ISO standard, 6.6.5.Simply returns theRegionSegmentInformation.voidinit(SegmentHeader header, SubInputStream sis) Parse the stream and read information of header.protected booleanprotected boolean
-
Constructor Details
-
HalftoneRegion
public HalftoneRegion() -
HalftoneRegion
-
HalftoneRegion
-
-
Method Details
-
getRegionBitmap
The procedure is described in JBIG2 ISO standard, 6.6.5.- Specified by:
getRegionBitmapin interfaceRegion- Returns:
- The decoded
Bitmapof this region. - Throws:
IOException- if an underlying IO operation failsInvalidHeaderValueException- if a segment header value is invalid
-
init
public void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException Description copied from interface:SegmentDataParse the stream and read information of header.- Specified by:
initin interfaceSegmentData- Parameters:
header- - The segments' header (to make referred-to segments available in data part).sis- - WrappedImageInputStreamintoSubInputStream.- Throws:
InvalidHeaderValueException- if the segment header value is invalidIOException- if an underlying IO operation fails
-
getCombinationOperator
-
getRegionInfo
Description copied from interface:RegionSimply returns theRegionSegmentInformation.- Specified by:
getRegionInfoin interfaceRegion- Returns:
- The
RegionSegmentInformation.
-
getHTemplate
protected byte getHTemplate() -
isHSkipEnabled
protected boolean isHSkipEnabled() -
isMMREncoded
protected boolean isMMREncoded() -
getHGridWidth
protected int getHGridWidth() -
getHGridHeight
protected int getHGridHeight() -
getHGridX
protected int getHGridX() -
getHGridY
protected int getHGridY() -
getHRegionX
protected int getHRegionX() -
getHRegionY
protected int getHRegionY() -
getHDefaultPixel
protected byte getHDefaultPixel()
-