encodeImageWith method

Future<Uint8List> encodeImageWith(
  1. ParallelRunner runner,
  2. Image input,
  3. Options options
)

Encodes input, offering runner the parts that can run independently.

The result is always identical to encode's. Formats whose encoder has no independently encodable pieces ignore runner and encode inline, which keeps the entry point uniform across codecs.

Implementation

Future<Uint8List> encodeImageWith(
  ParallelRunner runner,
  Image input,
  Options options,
) async => encode(
  input,
  encodeOptions: options,
);