public class HalftoneRegion extends Object implements Region
| Constructor and Description |
|---|
HalftoneRegion() |
HalftoneRegion(SubInputStream subInputStream) |
HalftoneRegion(SubInputStream subInputStream,
SegmentHeader segmentHeader) |
| Modifier and Type | Method and Description |
|---|---|
CombinationOperator |
getCombinationOperator() |
protected byte |
getHDefaultPixel() |
protected int |
getHGridHeight() |
protected int |
getHGridWidth() |
protected int |
getHGridX() |
protected int |
getHGridY() |
protected int |
getHRegionX() |
protected int |
getHRegionY() |
protected byte |
getHTemplate() |
Bitmap |
getRegionBitmap()
The procedure is described in JBIG2 ISO standard, 6.6.5.
|
RegionSegmentInformation |
getRegionInfo()
Simply returns the
RegionSegmentInformation. |
void |
init(SegmentHeader header,
SubInputStream sis)
Parse the stream and read information of header.
|
protected boolean |
isHSkipEnabled() |
protected boolean |
isMMREncoded() |
public HalftoneRegion()
public HalftoneRegion(SubInputStream subInputStream)
public HalftoneRegion(SubInputStream subInputStream, SegmentHeader segmentHeader)
public Bitmap getRegionBitmap() throws IOException, InvalidHeaderValueException
getRegionBitmap in interface RegionBitmap of this region.IOException - if an underlying IO operation failsInvalidHeaderValueException - if a segment header value is invalidpublic void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IOException
SegmentDatainit in interface SegmentDataheader - - The segments' header (to make referred-to segments available in data part).sis - - Wrapped ImageInputStream into SubInputStream.InvalidHeaderValueException - if the segment header value is invalidIOException - if an underlying IO operation failspublic CombinationOperator getCombinationOperator()
public RegionSegmentInformation getRegionInfo()
RegionRegionSegmentInformation.getRegionInfo in interface RegionRegionSegmentInformation.protected byte getHTemplate()
protected boolean isHSkipEnabled()
protected boolean isMMREncoded()
protected int getHGridWidth()
protected int getHGridHeight()
protected int getHGridX()
protected int getHGridY()
protected int getHRegionX()
protected int getHRegionY()
protected byte getHDefaultPixel()
Copyright © 2018 The Apache Software Foundation. All rights reserved.