exportToPngBytes static method

Uint8List exportToPngBytes(
  1. ScanResult result
)

Exports a scan result as simulated PNG byte buffer.

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

Implementation

static Uint8List exportToPngBytes(ScanResult result) {
  return _exportImageBytes(result, format: 'PNG');
}