decode method

  1. @override
Buffer<int> decode(
  1. String input, {
  2. PixelFormat<int, void>? format,
})
override

Decodes an ASCII Netpbm image to pixel data.

If the input is invalid, a FormatException is thrown.

The format is used to convert the pixel data to the desired format; if omitted defaults to abgr8888.

Implementation

@override
Buffer<int> decode(String input, {PixelFormat<int, void>? format}) {
  return netpbmAsciiDecoder.convert(input, format: format);
}