In This Topic
Sends an asynchronous request to remove image from image collection.
Syntax
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);
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.
Exceptions
| Exception | Description |
| Thrown if argument has wrong type OR image is not found in image collection OR image is not removed from image collection. |
Remarks
This function sends an asynchronous request to remove image from image collection. If you want to use synchronous request instead of asynchronous request, please use WebAcquiredImageCollectionJS.remove function.
Browser Compatibility
See Also