VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getImageLayoutAsync Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
getImageLayoutAsync Method
In This Topic
Sends an asynchronous request to get information about the current 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 successFunc; // Type: function
var errorFunc; // Type: function

value = instance.getImageLayoutAsync(successFunc, errorFunc);

Parameters

successFunc
A function that will be executed if request is executed successfully. Function prototype: "successFunc(twainDevice, imageLayout)", where 'twainDevice' parameter is an instance of WebTwainDeviceJS class, 'imageLayout' parameter is an object that contains information about current image layout rectangle, in units of measure specified by get_UnitOfMeasure() function, of TWAIN device.
errorFunc
A function that will be executed if request is failed. Function prototype: "errorFunc(twainDevice, errorMessage)", where 'twainDevice' parameter is an instance of WebTwainDeviceJS class, 'errorMessage' parameter is string that describes error.
Exceptions
ExceptionDescription
Thrown if device is not opened OR error occurs during getting current image layout rectangle of device.
Remarks

This function sends an asynchronous request to get information about the current image layout rectangle of TWAIN device. If you want to use synchronous request instead of asynchronous request, please use WebTwainDeviceJS.getImageLayout function.

Browser Compatibility
9
See Also