VintaSoft Barcode .NET SDK v10.0
renderTiles Method
Vintasoft.Shared Namespace > WebUrlImageSourceJS type : renderTiles Method
Zero-based index of image in image source.
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.
Optional parameter that represents the rendering settings of image.
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.WebUrlImageSourceJS(fileUrl, imageService, annotationService);
var value; // Type: object
value = instance.renderTiles(index, w, h, scale, renderingSettings, successFunc, errorFunc);
function renderTiles( 
   index : number,
   w : number,
   h : number,
   scale : object,
   renderingSettings : object,
   successFunc : object,
   errorFunc : object
) : object;

Parameters

index
Zero-based index of image in image source.
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.
renderingSettings
Optional parameter that represents the rendering settings of image.
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

WebUrlImageSourceJS type