VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / rotate Methods / rotate(number) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
rotate(number) Method
In This Topic
Rotates an image with automatic detection of border color.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);

var value; // Type: any

// Parameters
var angle; // Type: number

value = instance.rotate(angle);

Parameters

angle
Rotation angle in degrees.
Exceptions
ExceptionDescription
Thrown if argument has wrong type OR image is in processing now OR image processing is failed.
Remarks

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

Browser Compatibility
9
See Also