Table of Contents

Class Code39Reader

Namespace
ZXing.OneD
Assembly
zxing.dll

Decodes Code 39 barcodes. Supports "Full ASCII Code 39" if USE_CODE_39_EXTENDED_MODE is set.

Sean Owen @see Code93Reader
public sealed class Code39Reader : OneDReader, Reader
Inheritance
Code39Reader
Implements
Inherited Members

Constructors

Code39Reader()

Creates a reader that assumes all encoded data is data, and does not treat the final character as a check digit. It will not decoded "extended Code 39" sequences.

public Code39Reader()

Code39Reader(bool)

Creates a reader that can be configured to check the last character as a check digit. It will not decoded "extended Code 39" sequences.

public Code39Reader(bool usingCheckDigit)

Parameters

usingCheckDigit bool

if true, treat the last data character as a check digit, not data, and verify that the checksum passes.

Code39Reader(bool, bool)

Creates a reader that can be configured to check the last character as a check digit, or optionally attempt to decode "extended Code 39" sequences that are used to encode the full ASCII character set.

public Code39Reader(bool usingCheckDigit, bool extendedMode)

Parameters

usingCheckDigit bool

if true, treat the last data character as a check digit, not data, and verify that the checksum passes.

extendedMode bool

if true, will attempt to decode extended Code 39 sequences in the text.

Properties

Alphabet

Returns a string with all possible characters

public static string Alphabet { get; }

Property Value

string

Methods

decodeRow(int, BitArray, IDictionary<DecodeHintType, object>)

Attempts to decode a one-dimensional barcode format given a single row of an image.

public override Result decodeRow(int rowNumber, BitArray row, IDictionary<DecodeHintType, object> hints)

Parameters

rowNumber int

row number from top of the row

row BitArray

the black/white pixel data of the row

hints IDictionary<DecodeHintType, object>

decode hints

Returns

Result

Resultcontaining encoded string and start/end of barcode