VintaSoft Barcode .NET SDK 16.0: Documentation for Web developer
Vintasoft.Barcode Namespace / WebBarcodeReaderSettingsJS type / set_ScanRectangle Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
set_ScanRectangle Method
In This Topic
Sets the rectangle on image, where barcodes must be searched.
Syntax
var instance = new Vintasoft.Barcode.WebBarcodeReaderSettingsJS();

var returnValue; // Type: any

// Parameters
var x; // Type: number
var y; // Type: number
var w; // Type: number
var h; // Type: number

returnValue = instance.set_ScanRectangle(x, y, w, h);

Parameters

x
Coordinate of the left top corner of the rectangle.
y
Coordinate of the left top corner of the rectangle.
w
Width of the rectangle.
h
Height of the rectangle.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types.
Browser Compatibility
9
5
11
5
See Also