VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebAcquiredImageJS type / isBlankAsync Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    isBlankAsync Method
    In This Topic
    Sends an asynchronous request to check whether an image is blank.
    Syntax
    var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo);
    
    var value; // Type: Vintasoft.Twain.WebAcquiredImageIsBlankResultJS
    
    // Parameters
    var maxNoiseLevel; // Type: number
    var successFunc; // Type: function
    var errorFunc; // Type: function
    
    value = instance.isBlankAsync(maxNoiseLevel, successFunc, errorFunc);
    
    
    function isBlankAsync(
    maxNoiseLevel
    Maximum possible value of noise in image in percents. Optimal value is 0.01 (%).
    : number,
    successFunc
    A function that will be executed if request is executed successfully. Function prototype: "successFunc(image, isBlankResult)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'isBlankResult' parameter is an instance of WebAcquiredImageIsBlankResultJS class.
    : Function,
    errorFunc
    A function that will be executed if request is failed. Function prototype: "errorFunc(image, errorMessage)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
    : Function
    ) : WebAcquiredImageIsBlankResultJS;

    Parameters

    maxNoiseLevel
    Maximum possible value of noise in image in percents. Optimal value is 0.01 (%).
    successFunc
    A function that will be executed if request is executed successfully. Function prototype: "successFunc(image, isBlankResult)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'isBlankResult' parameter is an instance of WebAcquiredImageIsBlankResultJS class.
    errorFunc
    A function that will be executed if request is failed. Function prototype: "errorFunc(image, errorMessage)", where 'image' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.

    Return Value

    An instance of WebAcquiredImageIsBlankResultJS class.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type OR image is in processing now OR image processing is failed.
    Remarks

    This function sends an asynchronous request to check whether an image is blank. If you want to use synchronous request instead of asynchronous request, please use WebAcquiredImageJS.isBlank function.

    Browser Compatibility
    9
    See Also