VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceAcquireModalResultJS type / WebTwainDeviceAcquireModalResultJS Constructor(WebAcquireModalStateEnumJS,number,WebAcquiredImageJS,string)
Syntax BrowserCompatibility SeeAlso
In This Topic
    WebTwainDeviceAcquireModalResultJS Constructor(WebAcquireModalStateEnumJS,number,WebAcquiredImageJS,string)
    In This Topic
    Initializes a new instance of the WebTwainDeviceAcquireModalResultJS class.
    Syntax
    // Parameters
    var acquireModalState; // Type: WebAcquireModalStateEnumJS
    var imageAcquiringProgressValue; // Type: number
    var acquiredImage; // Type: WebAcquiredImageJS
    var errorMessage; // Type: string
    
    var instance = new Vintasoft.Twain.WebTwainDeviceAcquireModalResultJS(acquireModalState, imageAcquiringProgressValue, acquiredImage, errorMessage);
    
    
    function WebTwainDeviceAcquireModalResultJS(
    acquireModalState
    An instance of WebAcquireModalStateEnumJS class.
    : WebAcquireModalStateEnumJS,
    imageAcquiringProgressValue
    The progress, in percents, of synchronous image acquisition process if acquireModalState == WebAcquireModalStateEnumJS.ImageAcquiringProgress and TransferMode == WebTransferModeEnumJS.Memory.
    : number,
    acquiredImage
    An instance of WebAcquiredImageJS class if acquireModalState == WebAcquireModalStateEnumJS.ImageAcquired.
    : WebAcquiredImageJS,
    errorMessage
    A string that describes an error if acquireModalState == WebAcquireModalStateEnumJS.ScanFailed.
    : string
    ) : WebTwainDeviceAcquireModalResultJS;

    Parameters

    acquireModalState
    An instance of WebAcquireModalStateEnumJS class.
    imageAcquiringProgressValue
    The progress, in percents, of synchronous image acquisition process if acquireModalState == WebAcquireModalStateEnumJS.ImageAcquiringProgress and TransferMode == WebTransferModeEnumJS.Memory.
    acquiredImage
    An instance of WebAcquiredImageJS class if acquireModalState == WebAcquireModalStateEnumJS.ImageAcquired.
    errorMessage
    A string that describes an error if acquireModalState == WebAcquireModalStateEnumJS.ScanFailed.
    Browser Compatibility
    9
    See Also