org.jpedal.jbig2.image
Class JBIG2Bitmap
java.lang.Object
org.jpedal.jbig2.image.JBIG2Bitmap
public final class JBIG2Bitmap
- extends java.lang.Object
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBIG2Bitmap
public JBIG2Bitmap(int width,
int height,
ArithmeticDecoder arithmeticDecoder,
HuffmanDecoder huffmanDecoder,
MMRDecoder mmrDecoder)
readBitmap
public void readBitmap(boolean useMMR,
int template,
boolean typicalPredictionGenericDecodingOn,
boolean useSkip,
JBIG2Bitmap skipBitmap,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY,
int mmrDataLength)
throws java.io.IOException,
JBIG2Exception
- Throws:
java.io.IOException
JBIG2Exception
readGenericRefinementRegion
public void readGenericRefinementRegion(int template,
boolean typicalPredictionGenericRefinementOn,
JBIG2Bitmap referredToBitmap,
int referenceDX,
int referenceDY,
short[] adaptiveTemplateX,
short[] adaptiveTemplateY)
throws java.io.IOException,
JBIG2Exception
- Throws:
java.io.IOException
JBIG2Exception
readTextRegion
public 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
- Throws:
JBIG2Exception
java.io.IOException
clear
public void clear(int defPixel)
combine
public void combine(JBIG2Bitmap bitmap,
int x,
int y,
long combOp)
getWidth
public int getWidth()
getHeight
public int getHeight()
getData
public byte[] getData(boolean switchPixelColor)
getData
public void getData(byte[] bytes,
boolean switchPixelColor)
getSlice
public JBIG2Bitmap getSlice(int x,
int y,
int width,
int height)
setPixel
public void setPixel(int col,
int row,
int value)
getPixel
public int getPixel(int col,
int row)
expand
public void expand(int newHeight,
int defaultPixel)
setBitmapNumber
public void setBitmapNumber(int segmentNumber)
getBitmapNumber
public int getBitmapNumber()
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()