public class GenericRegion extends Object implements Region
| Constructor and Description |
|---|
GenericRegion() |
GenericRegion(SubInputStream subInputStream) |
| Modifier and Type | Method and Description |
|---|---|
protected short[] |
getGbAtX() |
protected short[] |
getGbAtY() |
protected byte |
getGbTemplate() |
Bitmap |
getRegionBitmap()
The procedure is described in 6.2.5.7, page 17.
|
RegionSegmentInformation |
getRegionInfo()
Simply returns the
RegionSegmentInformation. |
void |
init(SegmentHeader header,
SubInputStream sis)
Parse the stream and read information of header.
|
protected boolean |
isMMREncoded() |
protected boolean |
isTPGDon() |
protected void |
resetBitmap()
Simply sets the memory-critical bitmap of this region to
null. |
protected void |
setParameters(boolean isMMREncoded,
byte sdTemplate,
boolean isTPGDon,
boolean useSkip,
short[] sdATX,
short[] sdATY,
int symWidth,
int hcHeight,
CX cx,
ArithmeticDecoder arithmeticDecoder)
Used by
SymbolDictionary. |
protected void |
setParameters(boolean isMMREncoded,
long dataOffset,
long dataLength,
int gbh,
int gbw)
Used by
SymbolDictionary. |
protected void |
setParameters(boolean isMMREncoded,
long dataOffset,
long dataLength,
int gbh,
int gbw,
byte gbTemplate,
boolean isTPGDon,
boolean useSkip,
short[] gbAtX,
short[] gbAtY)
Used by
PatternDictionary and HalftoneRegion. |
protected boolean |
useExtTemplates() |
public GenericRegion()
public GenericRegion(SubInputStream subInputStream)
public Bitmap getRegionBitmap() throws IOException
getRegionBitmap in interface RegionBitmap.IOExceptionprotected void setParameters(boolean isMMREncoded,
long dataOffset,
long dataLength,
int gbh,
int gbw)
SymbolDictionary.protected void setParameters(boolean isMMREncoded,
byte sdTemplate,
boolean isTPGDon,
boolean useSkip,
short[] sdATX,
short[] sdATY,
int symWidth,
int hcHeight,
CX cx,
ArithmeticDecoder arithmeticDecoder)
SymbolDictionary.protected void setParameters(boolean isMMREncoded,
long dataOffset,
long dataLength,
int gbh,
int gbw,
byte gbTemplate,
boolean isTPGDon,
boolean useSkip,
short[] gbAtX,
short[] gbAtY)
PatternDictionary and HalftoneRegion.protected void resetBitmap()
null.public 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.InvalidHeaderValueExceptionIOExceptionpublic RegionSegmentInformation getRegionInfo()
RegionRegionSegmentInformation.getRegionInfo in interface RegionRegionSegmentInformation.protected boolean useExtTemplates()
protected boolean isTPGDon()
protected byte getGbTemplate()
protected boolean isMMREncoded()
protected short[] getGbAtX()
protected short[] getGbAtY()
Copyright © 2015. All rights reserved.