C# Class ZXing.OneD.Code39Reader

Decodes Code 39 barcodes. This does not support "Full ASCII Code 39" yet.

Sean Owen @see Code93Reader
Inheritance: ZXing.OneD.OneDReader
ファイルを表示 Open project: Redth/ZXing.Net.Mobile

Public Methods

Method Description
Code39Reader ( ) : System

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.

Code39Reader ( bool usingCheckDigit ) : System

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

Code39Reader ( bool usingCheckDigit, bool extendedMode ) : System

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.

decodeRow ( int rowNumber, BitArray row, object>.IDictionary hints ) : System.Result

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

Private Methods

Method Description
decodeExtended ( String encoded ) : String
findAsteriskPattern ( BitArray row, int counters ) : int[]
patternToChar ( int pattern, char &c ) : bool
toNarrowWidePattern ( int counters ) : int

Method Details

Code39Reader() public method

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 ( ) : System
return System

Code39Reader() public method

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 ) : System
usingCheckDigit bool if true, treat the last data character as a check digit, not /// data, and verify that the checksum passes.
return System

Code39Reader() public method

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 ) : System
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.
return System

decodeRow() public method

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

public decodeRow ( int rowNumber, BitArray row, object>.IDictionary hints ) : System.Result
rowNumber int row number from top of the row
row ZXing.Common.BitArray the black/white pixel data of the row
hints object>.IDictionary decode hints
return System.Result