| java.lang.Object com.lowagie.text.pdf.codec.CCITTG4Encoder
CCITTG4Encoder | public class CCITTG4Encoder (Code) | | Encodes data in the CCITT G4 FAX format.
|
Constructor Summary | |
public | CCITTG4Encoder(int width) Creates a new encoder. |
Method Summary | |
public byte[] | close() Closes the encoder and returns the encoded data. | public static byte[] | compress(byte[] data, int width, int height) Encodes a full image. | public void | fax4Encode(byte[] data, int offset, int size) Encodes a number of lines. | public void | fax4Encode(byte[] data, int height) Encodes a number of lines. |
CCITTG4Encoder | public CCITTG4Encoder(int width)(Code) | | Creates a new encoder.
Parameters: width - the line width |
close | public byte[] close()(Code) | | Closes the encoder and returns the encoded data.
the encoded data |
compress | public static byte[] compress(byte[] data, int width, int height)(Code) | | Encodes a full image.
Parameters: data - the data to encode Parameters: width - the image width Parameters: height - the image height the encoded image |
fax4Encode | public void fax4Encode(byte[] data, int offset, int size)(Code) | | Encodes a number of lines.
Parameters: data - the data to be encoded Parameters: offset - the offset into the data Parameters: size - the size of the data to be encoded |
fax4Encode | public void fax4Encode(byte[] data, int height)(Code) | | Encodes a number of lines.
Parameters: data - the data to be encoded Parameters: height - the number of lines to encode |
|
|