exportToJpgBytes static method

Uint8List exportToJpgBytes(
  1. ScanResult result
)

Exports a scan result as simulated JPG byte buffer.

Encodes the raw value and metadata as a binary payload with a JFIF-style header.

Implementation

static Uint8List exportToJpgBytes(ScanResult result) {
  return _exportImageBytes(result, format: 'JPG');
}