|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.codec.CCITTG4Encoder
public class CCITTG4Encoder
Encodes data in the CCITT G4 FAX format.
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 height)
Encodes a number of lines. |
void |
fax4Encode(byte[] data,
int offset,
int size)
Encodes a number of lines. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CCITTG4Encoder(int width)
width
- the line widthMethod Detail |
---|
public void fax4Encode(byte[] data, int offset, int size)
data
- the data to be encodedoffset
- the offset into the datasize
- the size of the data to be encodedpublic static byte[] compress(byte[] data, int width, int height)
data
- the data to encodewidth
- the image widthheight
- the image height
public void fax4Encode(byte[] data, int height)
data
- the data to be encodedheight
- the number of lines to encodepublic byte[] close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |