PeachImage
PeachImage.Formats.Jbig2
Jbig2DecoderOptions Class
JBIG2-specific decode options. Standalone .jb2/.jbig2 files are recognized by their signature and need no
options. The segments of a PDF JBIG2Decode stream have no file header, so set Embedded to select
the decoder directly, and pass the filter’s JBIG2Globals stream (if any) as Globals.
public sealed class Jbig2DecoderOptions : PeachImage.DecoderOptions
Inheritance System.Object → DecoderOptions → Jbig2DecoderOptions
Remarks
The result is a Gray8 image: JBIG2 black pixels become 0 and white pixels 255, or the reverse when InvertOutput is set.
| Properties | |
|---|---|
| Embedded | Whether the stream is an embedded (PDF-style) organisation: a bare sequence of segments with no file header. |
| Globals | The shared global segments (a PDF JBIG2Globals stream) that embedded page data may refer to. Ignored for standalone files. |
| InvertOutput | Whether to output black as 255 and white as 0, the reverse of the default. |