rotate(number,number) Method
In This Topic
Rotates an image.
Syntax
var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
var value; // Type: any
// Parameters
var angle; // Type: number
var borderColor; // Type: number
value = instance.rotate(angle, borderColor);
function rotate(
: number,
: number
) : any;
Parameters
- angle
- Rotation angle in degrees.
- borderColor
- The type of the border color. Possible values: 0-AutoDetect, 1-Black, 2-White. If undefined, AutoDetect value is used.
Exceptions
Exception | Description |
| 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
See Also