scanPixelsJson method

Future<String?> scanPixelsJson(
  1. Uint8List pixels,
  2. int width,
  3. int height,
  4. int format,
)

Decodes a colour image and hands back the document itself, for a caller that forwards documents.

Implementation

Future<String?> scanPixelsJson(
  Uint8List pixels,
  int width,
  int height,
  int format,
) => _scanJson(
  'scanPixels',
  pixels,
  width,
  height,
  (m) => m.setProperty('format'.toJS, format.toJS),
);