public final class JBIG2Bitmap
extends java.lang.Object
| Constructor and Description |
|---|
JBIG2Bitmap(int width,
int height,
ArithmeticDecoder arithmeticDecoder,
HuffmanDecoder huffmanDecoder,
MMRDecoder mmrDecoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int defPixel) |
void |
combine(JBIG2Bitmap bitmap,
int x,
int y,
long combOp) |
void |
expand(int newHeight,
int defaultPixel) |
int |
getBitmapNumber() |
java.awt.image.BufferedImage |
getBufferedImage() |
byte[] |
getData(boolean switchPixelColor) |
void |
getData(byte[] bytes,
boolean switchPixelColor) |
int |
getHeight() |
int |
getPixel(int col,
int row) |
JBIG2Bitmap |
getSlice(int x,
int y,
int width,
int height) |
int |
getWidth() |
void |
readBitmap(boolean useMMR,
int template,
boolean typicalPredictionGenericDecodingOn,
boolean useSkip,
JBIG2Bitmap skipBitmap,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY,
int mmrDataLength) |
void |
readGenericRefinementRegion(int template,
boolean typicalPredictionGenericRefinementOn,
JBIG2Bitmap referredToBitmap,
int referenceDX,
int referenceDY,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY) |
void |
readTextRegion(boolean huffman,
boolean symbolRefine,
int noOfSymbolInstances,
int logStrips,
int noOfSymbols,
int[][] symbolCodeTable,
int symbolCodeLength,
JBIG2Bitmap[] symbols,
int defaultPixel,
int combinationOperator,
boolean transposed,
int referenceCorner,
int sOffset,
int[][] huffmanFSTable,
int[][] huffmanDSTable,
int[][] huffmanDTTable,
int[][] huffmanRDWTable,
int[][] huffmanRDHTable,
int[][] huffmanRDXTable,
int[][] huffmanRDYTable,
int[][] huffmanRSizeTable,
int template,
short[] symbolRegionAdaptiveTemplateX,
short[] symbolRegionAdaptiveTemplateY,
JBIG2StreamDecoder decoder) |
void |
setBitmapNumber(int segmentNumber) |
void |
setPixel(int col,
int row,
int value) |
public JBIG2Bitmap(int width,
int height,
ArithmeticDecoder arithmeticDecoder,
HuffmanDecoder huffmanDecoder,
MMRDecoder mmrDecoder)
public void readBitmap(boolean useMMR,
int template,
boolean typicalPredictionGenericDecodingOn,
boolean useSkip,
JBIG2Bitmap skipBitmap,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY,
int mmrDataLength)
throws java.io.IOException,
JBIG2Exception
java.io.IOExceptionJBIG2Exceptionpublic void readGenericRefinementRegion(int template,
boolean typicalPredictionGenericRefinementOn,
JBIG2Bitmap referredToBitmap,
int referenceDX,
int referenceDY,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY)
throws java.io.IOException,
JBIG2Exception
java.io.IOExceptionJBIG2Exceptionpublic void readTextRegion(boolean huffman,
boolean symbolRefine,
int noOfSymbolInstances,
int logStrips,
int noOfSymbols,
int[][] symbolCodeTable,
int symbolCodeLength,
JBIG2Bitmap[] symbols,
int defaultPixel,
int combinationOperator,
boolean transposed,
int referenceCorner,
int sOffset,
int[][] huffmanFSTable,
int[][] huffmanDSTable,
int[][] huffmanDTTable,
int[][] huffmanRDWTable,
int[][] huffmanRDHTable,
int[][] huffmanRDXTable,
int[][] huffmanRDYTable,
int[][] huffmanRSizeTable,
int template,
short[] symbolRegionAdaptiveTemplateX,
short[] symbolRegionAdaptiveTemplateY,
JBIG2StreamDecoder decoder)
throws JBIG2Exception,
java.io.IOException
JBIG2Exceptionjava.io.IOExceptionpublic void clear(int defPixel)
public void combine(JBIG2Bitmap bitmap, int x, int y, long combOp)
public int getWidth()
public int getHeight()
public byte[] getData(boolean switchPixelColor)
public void getData(byte[] bytes,
boolean switchPixelColor)
public JBIG2Bitmap getSlice(int x, int y, int width, int height)
public void setPixel(int col,
int row,
int value)
public int getPixel(int col,
int row)
public void expand(int newHeight,
int defaultPixel)
public void setBitmapNumber(int segmentNumber)
public int getBitmapNumber()
public java.awt.image.BufferedImage getBufferedImage()