encode method

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

Encodes pixel data as an ASCII Netpbm image.

The comments are added to the image.

If the format is omitted, defaults to:

Implementation

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