public class TextRegion extends Object implements Region
| Constructor and Description |
|---|
TextRegion() |
TextRegion(SubInputStream subInputStream,
SegmentHeader segmentHeader) |
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
getRegionBitmap()
Decodes and returns a regions content.
|
RegionSegmentInformation |
getRegionInfo()
Simply returns the
RegionSegmentInformation. |
void |
init(SegmentHeader header,
SubInputStream sis)
Parse the stream and read information of header.
|
protected void |
setContexts(CX cx,
CX cxIADT,
CX cxIAFS,
CX cxIADS,
CX cxIAIT,
CX cxIAID,
CX cxIARDW,
CX cxIARDH,
CX cxIARDX,
CX cxIARDY) |
protected void |
setParameters(ArithmeticDecoder arithmeticDecoder,
ArithmeticIntegerDecoder iDecoder,
boolean isHuffmanEncoded,
boolean sbRefine,
int sbw,
int sbh,
long sbNumInstances,
int sbStrips,
int sbNumSyms,
short sbDefaultPixel,
short sbCombinationOperator,
short transposed,
short refCorner,
short sbdsOffset,
short sbHuffFS,
short sbHuffDS,
short sbHuffDT,
short sbHuffRDWidth,
short sbHuffRDHeight,
short sbHuffRDX,
short sbHuffRDY,
short sbHuffRSize,
short sbrTemplate,
short[] sbrATX,
short[] sbrATY,
ArrayList<Bitmap> sbSyms,
int sbSymCodeLen) |
public TextRegion()
public TextRegion(SubInputStream subInputStream, SegmentHeader segmentHeader)
public Bitmap getRegionBitmap() throws IOException, IntegerMaxValueException, InvalidHeaderValueException
RegiongetRegionBitmap in interface RegionBitmap.IOExceptionIntegerMaxValueExceptionInvalidHeaderValueExceptionpublic void init(SegmentHeader header, SubInputStream sis) throws InvalidHeaderValueException, IntegerMaxValueException, IOException
SegmentDatainit in interface SegmentDataheader - - The segments' header (to make referred-to segments available in data part).sis - - Wrapped ImageInputStream into SubInputStream.InvalidHeaderValueExceptionIntegerMaxValueExceptionIOExceptionprotected void setContexts(CX cx, CX cxIADT, CX cxIAFS, CX cxIADS, CX cxIAIT, CX cxIAID, CX cxIARDW, CX cxIARDH, CX cxIARDX, CX cxIARDY)
protected void setParameters(ArithmeticDecoder arithmeticDecoder, ArithmeticIntegerDecoder iDecoder, boolean isHuffmanEncoded, boolean sbRefine, int sbw, int sbh, long sbNumInstances, int sbStrips, int sbNumSyms, short sbDefaultPixel, short sbCombinationOperator, short transposed, short refCorner, short sbdsOffset, short sbHuffFS, short sbHuffDS, short sbHuffDT, short sbHuffRDWidth, short sbHuffRDHeight, short sbHuffRDX, short sbHuffRDY, short sbHuffRSize, short sbrTemplate, short[] sbrATX, short[] sbrATY, ArrayList<Bitmap> sbSyms, int sbSymCodeLen)
public RegionSegmentInformation getRegionInfo()
RegionRegionSegmentInformation.getRegionInfo in interface RegionRegionSegmentInformation.Copyright © 2015. All rights reserved.