VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / deskew Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
deskew Method
In This Topic
Deskews 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

value = instance.deskew(borderColor, scanIntervalX, scanIntervalY);

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.
Exceptions
ExceptionDescription
Thrown if arguments have wrong type OR image is in processing now OR image processing is failed.
Remarks

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

Browser Compatibility
9
See Also