var instance = new Vintasoft.Twain.WebAcquiredImageJS(twainDeviceManager, imageId, imageInfo); var value; // Type: Vintasoft.Twain.WebAcquiredImageIsBlankResultJS // Parameters var successFunc; // Type: function var errorFunc; // Type: function value = instance.invertAsync(successFunc, errorFunc);
function invertAsync(
successFuncA function that will be executed if request is executed successfully. Function prototype: "successFunc(image)", where 'image' parameter is an instance of WebAcquiredImageJS class.: Function,
errorFuncA 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
- successFunc
- A function that will be executed if request is executed successfully. Function prototype: "successFunc(image)", where 'image' parameter is an instance of WebAcquiredImageJS 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.