execute(Vintasoft.Shared.WebImageJS,function,Vintasoft.Shared.WebServiceJS) Method
In This Topic
Executes the image processing command.
Syntax
var instance = new Vintasoft.Imaging.ImageProcessing.WebGetThresholdCommandJS();
var value; // Type: boolean
// Parameters
var image; // Type: WebImageJS
var successFunc; // Type: function
var service; // Type: WebServiceJS
value = instance.execute(image, successFunc, service);
Parameters
- image
- Image that should be processed.
- successFunc
- Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
The data parameter has the following properties:
- imageInfo (object): Information about image (image ID and page index).
- sourceImage (object): WebImageJS object, which represents source image.
- service
- WebServiceJS that shoud process the image.
Return Value
true if image is processed; false if processing is canceled or not necessary.
Exceptions
Exception | Description |
| Thrown if arguments have wrong types. |
| Thrown if image has an unsupported pixel format. |
Browser Compatibility
See Also