public class G42DEncoder extends G32DEncoder implements ImageEncoder
currPos, scanLineWidth| Constructor and Description |
|---|
G42DEncoder(java.io.OutputStream os,
int scanLineWidth,
int buf_length,
Updatable<java.lang.Integer> writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(byte[] pixels,
int start,
int len)
This method assumes "len" is a multiplication of scan line length.
|
encode2DLineencode1DLine, finish, getCompressedDataLen, initialize, outputRunLengthCode, outputRunLengthCode2, send_code_to_buffer, setExtraFlushclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, getCompressedDataLen, initializepublic G42DEncoder(java.io.OutputStream os,
int scanLineWidth,
int buf_length,
Updatable<java.lang.Integer> writer)
public void encode(byte[] pixels,
int start,
int len)
throws java.lang.Exception
encode in interface ImageEncoderencode in class G32DEncoderlen - the number of pixels to be encodedpixels - array of pixels (This has nothing to do with the actual bits per pixel since it could be pixel packed)start - offset in the pixel array where the encoding starts (the actual position could be anywhere inside the
offset byte which maybe kept track of by the implementation class through a parameter such as
currPos if the encoder is pixel oriented).java.lang.Exception