Jbig2Encoder class final

Encodes RGBA images as arithmetic-coded, lossless JBIG2 generic regions.

Opaque binary pixels are required unless Jbig2EncodeOptions.threshold explicitly requests conversion to black and white.

Inheritance

Constructors

Jbig2Encoder({Jbig2EncodeOptions defaultOptions = const Jbig2EncodeOptions()})
Creates an encoder with strict binary input by default.
const

Properties

defaultEncodeOptions → Jbig2EncodeOptions
The default encode options.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<Image> stream) → Stream<Uint8List>
Transforms the provided stream.
inherited
cast<RS, RT>() → Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Image input, {Jbig2EncodeOptions? encodeOptions}) → Uint8List
Converts input and returns the result of the conversion.
inherited
encode(Image input, {Jbig2EncodeOptions? encodeOptions}) → Uint8List
Encodes input to raster bytes.
inherited
encodeEmbedded(Image input, {Jbig2EncodeOptions? encodeOptions}) → Uint8List
Encodes a PDF JBIG2Decode stream without a file header or global segments.
encodeWithOptions(Image input, Jbig2EncodeOptions options) → Uint8List
Encodes input to raster bytes, with the given options or default options.
override
fuse<TT>(Converter<Uint8List, TT> other) → Converter<Image, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<Uint8List> sink) → Sink<Image>
Starts a chunked conversion.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited