VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / rotate Methods / rotate(number,number) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    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(
    angle
    Rotation angle in degrees.
    : number,
    borderColor
    The type of the border color. Possible values: 0-AutoDetect, 1-Black, 2-White. If undefined, AutoDetect value is used.
    : 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
    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