scanPixels method
Decodes a colour image, converting it to grayscale first. format is a
WxScanPixelFormat value.
Implementation
Future<ScanOutcome> scanPixels(
Uint8List pixels,
int width,
int height,
int format,
) => _scan(
'scanPixels',
pixels,
width,
height,
(m) => m.setProperty('format'.toJS, format.toJS),
);