TUPCEANReader.DecodeMiddle Method

Definition

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

Delphi
function DecodeMiddle(const row: IBitArray; const startRange: TArray<Integer>; const resultString: TStringBuilder): Integer

Parameters

row
IBitArray

row of black/white values to search

startRange
TArray<Integer>

start/end offset of start guard pattern

resultString
TStringBuilder

StringBuilder to append decoded chars to

Returns

Integer

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