encode method

  1. @override
Uint8List encode(
  1. Buffer<int> input, {
  2. Iterable<String> comments = const [],
  3. NetpbmFormat? format,
})
override

Encodes pixel data as a binary Netpbm image.

The comments are added to the image.

If the format is omitted, defaults to:

Implementation

@override
Uint8List encode(
  Buffer<int> input, {
  Iterable<String> comments = const [],
  NetpbmFormat? format,
}) {
  return netpbmBinaryEncoder.convert(
    input,
    comments: comments,
    format: format,
  );
}