imageBytes property

Uint8List? imageBytes
getter/setter pair

The image the decoder actually scanned, as one byte per pixel.

This is a debugging aid, not a copy of the source image: it is the luminance the decoder worked on, already cropped to the scan rect, whatever pixel format the input had. Use it to see what the decoder saw when a scan is failing — pngFromBytes renders it directly.

Only populated while logging is on (zx.setLogEnabled(true)); it is null otherwise, so that scanning does not copy a full frame per result.

Implementation

Uint8List? imageBytes;