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);
function deskew(
: number,
: number,
: number
) : 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.
Exceptions
Exception | Description |
| 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
See Also