var instance = new Vintasoft.Twain.WebAcquiredImageCollectionJS(twainDeviceManager); var value; // Type: Vintasoft.Twain.WebAcquiredImageJS // Parameters var index; // Type: number var successFunc; // Type: function var errorFunc; // Type: function value = instance.removeAtAsync(index, successFunc, errorFunc);
function removeAtAsync(
indexA zero-based index of image in image collection.: number,
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
- index
- A zero-based index of image in image 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.