var instance = new Vintasoft.Imaging.ImageProcessing.DocCleanup.WebGetDocumentImageRotationAngleCommandJS(); var value; // Type: boolean // Parameters var image; // Type: WebImageJS var successFunc; // Type: function var errorFunc; // Type: function var service; // Type: WebServiceJS value = instance.execute(image, successFunc, errorFunc, service);
function execute(
imageImage that should be processed.: WebImageJS,
successFuncFunction that will be executed if request is executed successfully.: Function,
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.
errorFuncFunction that will be executed if request is failed.: Function,
Here is function prototype "function __error(data)".
The data parameter can be:
- An object with following properties:
if exception is catched inside web service.
- errorMessage (string): Error message.
- blocked (boolean): Indicates that the requested action is blocked by another request.
- Otherwise, jqXHR object.
serviceWebServiceJS that shoud process the image.: WebServiceJS
) : boolean;
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.
- errorFunc
- Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
- An object with following properties:
- errorMessage (string): Error message.
- blocked (boolean): Indicates that the requested action is blocked by another request.
- Otherwise, jqXHR object.
- An object with following properties:
- service
- WebServiceJS that shoud process the image.
Return Value
true if image is processed; false if processing is canceled or not necessary.