VintaSoft Twain .NET SDK v10.2
renderTiles Method
Vintasoft.Shared Namespace > WebImageJS type : renderTiles Method
The width, in pixels, of scaled tile.
The height, in pixels, of scaled tile.
The scale (horizontal and vertical) of image tile. Supported values: 0.1 - 10%, 1 - 100%, etc.
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
Sends an asynchronous request for rendering of all image tiles.
Syntax
var instance = new Vintasoft.Shared.WebImageJS(imageSource, pageIndex);
var value; // Type: object

// Parameters
var w; // Type:  number
var h; // Type:  number
var scale; // Type:  object
var successFunc; // Type:  object
var errorFunc; // Type:  object

value = instance.renderTiles(w, h, scale, successFunc, errorFunc);
function renderTiles( 
   w : number,
   h : number,
   scale : object,
   successFunc : object,
   errorFunc : object
) : object;

Parameters

w
The width, in pixels, of scaled tile.
h
The height, in pixels, of scaled tile.
scale
The scale (horizontal and vertical) of image tile. Supported values: 0.1 - 10%, 1 - 100%, etc.
successFunc
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
errorFunc
Function that will be executed if request is failed.
Here is function prototype "function __error(data)".
The data parameter can be:
  1. An object with following properties:
    • errorMessage: Error message.
    • blocked: Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.

Return Value

Request object.
Browser Compatibility
9
5
11
5
See Also

Reference

WebImageJS type