Scan1()

Return type: int

Declaration: public int scan1(int ntries, int left, int top)

Parameters:

ntries: number of scan lines across the scan area; each scan line is the equivalent of 6/ntries mm in height. A value of <=0 is replaced by a vlaue of 1. Method returns as soon as a barcode is identified and decoded.

left: the left coordinate (in pixels) of the scan area.

top: the top coordinate (in pixels) of the scan area.

This method scans the image, starting at the pixel with coordinates left,top, and moving down the image ntries times.

Returns -1 if a barcode has been identified and decoded; returns -2 if a decode is known to be complete (i.e the stop bars have been identified). Otherwise returns an error value (see ErrorCode).

 

 

More:

Scan2()