com.lowagie.text.pdf.codec
public class CCITTG4Encoder extends Object
| Field Summary | |
|---|---|
| int | bit |
| static int | CODE |
| int | data |
| byte[] | dataBp |
| static int | EOL |
| static int | G3CODE_EOF |
| static int | G3CODE_EOL |
| static int | G3CODE_INCOMP |
| static int | G3CODE_INVALID |
| int[] | horizcode |
| static int | LENGTH |
| int[] | msbmask |
| int | offsetData |
| static byte[] | oneruns |
| ByteBuffer | outBuf |
| int[] | passcode |
| byte[] | refline |
| int | rowbytes |
| int | rowpixels |
| static int | RUNLEN |
| int | sizeData |
| int[][] | TIFFFaxBlackCodes |
| int[][] | TIFFFaxWhiteCodes |
| int[][] | vcodes |
| static byte[] | zeroruns |
| Constructor Summary | |
|---|---|
| CCITTG4Encoder(int width)
Creates a new encoder. | |
| Method Summary | |
|---|---|
| byte[] | close()
Closes the encoder and returns the encoded data. |
| static byte[] | compress(byte[] data, int width, int height)
Encodes a full image. |
| void | fax4Encode(byte[] data, int offset, int size)
Encodes a number of lines. |
| void | fax4Encode(byte[] data, int height)
Encodes a number of lines. |
| static int | find0span(byte[] bp, int offset, int bs, int be) |
| static int | find1span(byte[] bp, int offset, int bs, int be) |
| static int | finddiff(byte[] bp, int offset, int bs, int be, int color) |
| static int | finddiff2(byte[] bp, int offset, int bs, int be, int color) |
| void | Fax3Encode2DRow() |
| void | Fax4PostEncode() |
| int | pixel(byte[] data, int offset, int bit) |
| void | putBits(int bits, int length) |
| void | putcode(int[] table) |
| void | putspan(int span, int[][] tab) |
Parameters: width the line width
Returns: the encoded data
Parameters: data the data to encode width the image width height the image height
Returns: the encoded image
Parameters: data the data to be encoded offset the offset into the data size the size of the data to be encoded
Parameters: data the data to be encoded height the number of lines to encode