var instance = new Vintasoft.Twain.WebAcquiredImageCollectionJS(twainDeviceManager); var value; // Type: Vintasoft.Twain.WebAcquiredImageJS // Parameters var image; // Type: WebAcquiredImageJS var successFunc; // Type: function var errorFunc; // Type: function value = instance.removeAsync(image, successFunc, errorFunc);
function removeAsync(
imageAn instance of WebAcquiredImageJS class, which should be removed from this collection.: WebAcquiredImageJS,
successFuncA function that will be executed if request is executed successfully. Function prototype: "successFunc(imageCollection, image)", where 'imageCollection' parameter is an instance of WebAcquiredImageCollectionJS class, 'image' parameter is removed instance of WebAcquiredImageJS class.: Function,
errorFuncA function that will be executed if request is failed. Function prototype: "errorFunc(imageCollection, errorMessage)", where 'imageCollection' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.: Function
) : WebAcquiredImageJS;
Parameters
- image
- An instance of WebAcquiredImageJS class, which should be removed from this collection.
- successFunc
- A function that will be executed if request is executed successfully. Function prototype: "successFunc(imageCollection, image)", where 'imageCollection' parameter is an instance of WebAcquiredImageCollectionJS class, 'image' parameter is removed instance of WebAcquiredImageJS class.
- errorFunc
- A function that will be executed if request is failed. Function prototype: "errorFunc(imageCollection, errorMessage)", where 'imageCollection' parameter is an instance of WebAcquiredImageJS class, 'errorMessage' parameter is string that describes error.
Return Value
An instance of WebAcquiredImageJS class that was removed from image collection.