decode method
- Uint8List input, {
- 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);
}