VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / detectBorder Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    detectBorder Method
    In This Topic
    Detects border of image.
    Syntax
    var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
    
    var value; // Type: any
    
    // Parameters
    var borderSize; // Type: number
    
    value = instance.detectBorder(borderSize);
    
    
    function detectBorder(
    borderSize
    Size of border around the image. Possible values: 0 - 100. Default value is 5.
    : number
    ) : any;

    Parameters

    borderSize
    Size of border around the image. Possible values: 0 - 100. Default value is 5.
    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 detect border of image. If you want to use asynchronous request instead of synchronous request, please use WebAcquiredImageJS.detectBorderAsync function.

    Browser Compatibility
    9
    See Also