TEAN8Reader.DecodeMiddle Method

Subclasses override this to decode the portion of a barcode between the start and end guard patterns.

Unit: ZXing.OneD.EAN8Reader
class function DecodeMiddle(const row: IBitArray; const startRange: TArray<Integer>; const resultString: TStringBuilder): Integer

Parameters

row
Type: ZXing.Common.BitArray.IBitArray

row of black/white values to search

startRange
Type: TArray<Integer>

start/end offset of start guard pattern

resultString
Type: TStringBuilder

to append decoded chars to

Return Value

Type: System.Integer

horizontal offset of first pixel after the "middle" that was decoded or -1 if decoding could not complete successfully

Overrides

ZXing.OneD.UPCEANReader.TUPCEANReader.DecodeMiddle