Encoder implements a CCITT facsimile (fax) Group3 and Group4 encoding/decoding algorithms.
type Encoder struct { K int EndOfLine bool EncodedByteAlign bool Columns int Rows int EndOfBlock bool BlackIs1 bool DamagedRowsBeforeError int }
func (e *Encoder) Decode(encoded []byte) ([][]byte, error)
Decode performs decoding operation on the encoded image using the Group3 or Group4 CCITT facsimile (fax) algorithm.
func (e *Encoder) Encode(pixels [][]byte) []byte
Encode encodes the original image pixels. Note: `pixels` here are the pixels of the image where each byte value is 1 for white pixels and 0 for the black ones.