Barcode Xpress for Java v14.0 - Updated January 7, 2025
com.accusoft.barcodexpress Package / BarcodeReader Class / setScanDistance Method
scan distance value in pixels. Valid values are 1 through 10.
In This Topic
setScanDistance Method
In This Topic

Sets the scan distance in pixels between line sweeps when searching for 1D barcodes.

Reducing this value can help in finding barcodes which are short relative to their height. This value effects the run time of the barcode search. Smaller values will require more processing of the image.
Syntax
public void setScanDistance( 
   int scanDistance
)

Parameters

scanDistance
scan distance value in pixels. Valid values are 1 through 10.
See Also