PeachImage

PeachImage.Formats.Ccitt

CcittFaxDecoderOptions Class

Options for decoding a raw CCITT fax stream (Group 3 or Group 4), such as the data of a PDF CCITTFaxDecode filter. Raw fax data has no signature or header, so passing these options to Load(Stream, DecoderOptions) selects the fax decoder directly. The property names and defaults mirror the PDF filter parameters.

public sealed class CcittFaxDecoderOptions : PeachImage.DecoderOptions

Inheritance System.Object → DecoderOptions → CcittFaxDecoderOptions

Remarks

The result is a Gray8 image whose samples are the filter’s output bits scaled to 0 or 255. With BlackIs1 false (the default) black pixels are 0 and white pixels 255; with it true they are reversed.

Properties  
BlackIs1 Whether 1 bits are black pixels, the reverse of the usual PDF convention. Default false.
Columns Width of the image in pixels. Default 1728.
DamagedRowsBeforeError How many damaged rows to repair (by repeating the previous row) before failing. Repair needs EOL codes in the data. Default 0.
EncodedByteAlign Whether each encoded row begins on a byte boundary. Default false.
EndOfBlock Whether the data ends with an end-of-block pattern (EOFB or RTC). Default true.
EndOfLine Whether Group 3 EOL codes are expected in the data. They are accepted either way. Default false.
K Negative: Group 4 (T.6). Zero: Group 3 one-dimensional. Positive: Group 3 mixed one- and two-dimensional. Default 0.
LsbFirst Whether bits within each byte are in least-significant-first order (TIFF FillOrder 2). Default false.
Rows Height of the image in rows, or 0 (the default) to decode until the data ends.