exportToPngBytes static method
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');
}