TBinaryBitmap.getBlackRow Method

Definition

Converts one row of luminance data to 1 bit data. May actually do the conversion, or return cached data. Callers should assume this method is expensive and call it as seldom as possible. This method is intended for decoding 1D barcodes and may choose to apply sharpening.

Delphi
function getBlackRow(y: Integer; row: IBitArray): IBitArray

Parameters

y
Integer

The row to fetch, which must be in [0, bitmap height).

row
IBitArray

An optional preallocated array. If null or too small, it will be ignored. If used, the Binarizer will call BitArray.clear(). Always use the returned object.

Returns

IBitArray

The array of bits for this row (true means black).