Table of Contents

Class Decoder

Namespace
ZXing.QrCode.Internal
Assembly
zxing.dll

The main class which implements QR Code decoding -- as opposed to locating and extracting the QR Code from an image.

public sealed class Decoder
Inheritance
Decoder
Inherited Members

Constructors

Decoder()

Initializes a new instance of the Decoder class.

public Decoder()

Methods

decode(bool[][], IDictionary<DecodeHintType, object>)

Convenience method that can decode a QR Code represented as a 2D array of booleans. "true" is taken to mean a black module.

public DecoderResult decode(bool[][] image, IDictionary<DecodeHintType, object> hints)

Parameters

image bool[][]

booleans representing white/black QR Code modules

hints IDictionary<DecodeHintType, object>

decoding hints that should be used to influence decoding

Returns

DecoderResult

text and bytes encoded within the QR Code

decode(BitMatrix, IDictionary<DecodeHintType, object>)

Decodes a QR Code represented as a {@link BitMatrix}. A 1 or "true" is taken to mean a black module.

public DecoderResult decode(BitMatrix bits, IDictionary<DecodeHintType, object> hints)

Parameters

bits BitMatrix

booleans representing white/black QR Code modules

hints IDictionary<DecodeHintType, object>

decoding hints that should be used to influence decoding

Returns

DecoderResult

text and bytes encoded within the QR Code