decode method

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

Decodes a binary 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(Uint8List input, {PixelFormat<int, void>? format}) {
  return netpbmBinaryDecoder.convert(input, format: format);
}