Return type: int
Declaration: public int scan()
Parameters: none
This method scans the entire width of the image, starting one third of the way down the image and scanning a height equivalent to the smaller of one third of the image height or 60 pixels.
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).