In This Topic
Sets the image layout rectangle of TWAIN/WIA/SANE/eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: any
// Parameters
var x; // Type: number
var y; // Type: number
var width; // Type: number
var height; // Type: number
value = instance.setImageLayout(x, y, width, height);
function setImageLayout(
: number,
: number,
: number,
: number
) : any;
Parameters
- x
- X-coordinate, in units of measure specified by get_UnitOfMeasure() function, of image layout rectangle.
- y
- Y-coordinate, in units of measure specified by get_UnitOfMeasure() function, of image layout rectangle.
- width
- Width, in units of measure specified by get_UnitOfMeasure() function, of image layout rectangle.
- height
- Height, in units of measure specified by get_UnitOfMeasure() function, of image layout rectangle.
Exceptions
| Exception | Description |
| Thrown if arguments have wrong types OR device is not opened OR error occurs during setting the image layout rectangle of device. |
Remarks
This function sends a synchronous request to set the image layout rectangle of TWAIN device. If you want to use asynchronous request instead of synchronous request, please use WebTwainDeviceJS.setImageLayoutAsync function.
Browser Compatibility
See Also