public class CCITTG4Encoder extends Object
Constructor and Description |
---|
CCITTG4Encoder(int width)
Creates a new encoder.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CCITTG4Encoder(int width)
width
- the line width
public void fax4Encode(byte[] data, int offset, int size)
data
- the data to be encoded
offset
- the offset into the data
size
- the size of the data to be encoded
public static byte[] compress(byte[] data, int width, int height)
data
- the data to encode
width
- the image width
height
- the image height
public void fax4Encode(byte[] data, int height)
data
- the data to be encoded
height
- the number of lines to encode
public byte[] close()
Copyright © 1998–2019. All rights reserved.