Scan2()

Return type: int

Declaration: public int scan2(int left, int top, int swidth, int sdepth)

Parameters:

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

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

swidth: width (in pixels) of the area to be included in the scan.

sdepth: height (in pixels) of the area to be included in the scan.

If bSelected is false this method use the entire image provided in dImage; if bSelected is true then the method uses the selected area of the image specified using the selLeft, etc. properties. The top and left parameters are relative pixel positions – relative to the top, left of the image area being used. If the top property is 0 a value equal to one third of the area height is used. If it is essential to include to top line in the scan a value of -1 should be used for this property.

If swidth is 0 the width of the target image area is used. If sdepth is 0 a value of one third of the area height is used.

This method scans the specified image area, starting with the pixel coordinates left, top and using a scan of width swidth and height sdepth. If swidth is 0 the width of the target image area is used . If sdepth is 0 a value of one third of the area height is used, up to a maximum value of 60.

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:

TargetType()