VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / deskewAsync Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    deskewAsync Method
    In This Topic
    Sends an asynchronous request to deskew an image.
    Syntax
    var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
    
    var value; // Type: any
    
    // Parameters
    var borderColor; // Type: number
    var scanIntervalX; // Type: number
    var scanIntervalY; // Type: number
    var successFunc; // Type: function
    var errorFunc; // Type: function
    
    value = instance.deskewAsync(borderColor, scanIntervalX, scanIntervalY, successFunc, errorFunc);
    
    
    function deskewAsync(
    borderColor
    The type of the border color. Possible values: 0-AutoDetect, 1-Black, 2-White.
    : number,
    scanIntervalX
    The horizontal scan interval.
    : number,
    scanIntervalY
    The vertical scan interval.
    : number,
    successFunc
    A function that will be executed if request is executed successfully. Function prototype: "successFunc(image)", where 'image' parameter is an instance of WebAcquiredImageJS class.
    : Function,
    errorFunc
    A function that will be executed if request is failed. Function prototype: "errorFunc(image, errorMessage)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
    : Function
    ) : any;

    Parameters

    borderColor
    The type of the border color. Possible values: 0-AutoDetect, 1-Black, 2-White.
    scanIntervalX
    The horizontal scan interval.
    scanIntervalY
    The vertical scan interval.
    successFunc
    A function that will be executed if request is executed successfully. Function prototype: "successFunc(image)", where 'image' parameter is an instance of WebAcquiredImageJS class.
    errorFunc
    A function that will be executed if request is failed. Function prototype: "errorFunc(image, errorMessage)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong type OR image is in processing now OR image processing is failed.
    Remarks

    This function sends an asynchronous request to deskew an image. If you want to use synchronous request instead of asynchronous request, please use WebAcquiredImageJS.deskew function.

    Browser Compatibility
    9
    See Also