VintaSoft Imaging .NET SDK v8.6
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.
A format in which the image tile must be saved in server cache.
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 (string): Error message.
    • blocked (boolean): Indicates that the requested action is blocked by another request.
    if exception is catched inside web service.
  2. Otherwise, jqXHR object.
In This Topic
    renderTiles Method
    In This Topic
    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 format; // Type:  object
    var successFunc; // Type:  object
    var errorFunc; // Type:  object
    
    value = instance.renderTiles(w, h, scale, format, successFunc, errorFunc);
    function renderTiles( 
       w : number,
       h : number,
       scale : object,
       format : 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.
    format
    A format in which the image tile must be saved in server cache.
    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 (string): Error message.
      • blocked (boolean): 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