Table of Contents

Interface Reader

Namespace
ZXing
Assembly
zxing.dll

Implementations of this interface can decode an image of a barcode in some format into the String it encodes. For example, QRCodeReader can decode a QR code. The decoder may optionally receive hints from the caller which may help it decode more quickly or accurately.

See MultiFormatReader, which attempts to determine what barcode format is present within the image as well, and then decodes it accordingly.

public interface Reader

Methods

decode(BinaryBitmap)

Locates and decodes a barcode in some format within an image.

Result decode(BinaryBitmap image)

Parameters

image BinaryBitmap

image of barcode to decode

Returns

Result

String which the barcode encodes

decode(BinaryBitmap, IDictionary<DecodeHintType, object>)

Locates and decodes a barcode in some format within an image. This method also accepts hints, each possibly associated to some data, which may help the implementation decode.

Result decode(BinaryBitmap image, IDictionary<DecodeHintType, object> hints)

Parameters

image BinaryBitmap

image of barcode to decode

hints IDictionary<DecodeHintType, object>

passed as a IDictionary<TKey, TValue> from DecodeHintType to arbitrary data. The meaning of the data depends upon the hint type. The implementation may or may not do anything with these hints.

Returns

Result

String which the barcode encodes

reset()

Resets any internal state the implementation has after a decode, to prepare it for reuse.

void reset()