VintaSoft Barcode .NET SDK v10.0
getTile Method
Vintasoft.Shared Namespace > WebImageJS type : getTile Method
X coordinate of tile on source image (X coordinate without scale).
Y coordinate of tile on source image (Y coordinate without scale).
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.
Value indicating whether rendered image tile must be saved.
Function that will be executed if request is executed successfully.
Here is function prototype "function __success(data)".
The data parameter has the following properties:
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 image tile.
Syntax
var instance = new Vintasoft.Shared.WebImageJS(imageSource, pageIndex);
var value; // Type: object
value = instance.getTile(x, y, w, h, scale, useCache, successFunc, errorFunc);
function getTile( 
   x : number,
   y : number,
   w : number,
   h : number,
   scale : object,
   useCache : boolean,
   successFunc : object,
   errorFunc : object
) : object;

Parameters

x
X coordinate of tile on source image (X coordinate without scale).
y
Y coordinate of tile on source image (Y coordinate without scale).
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.
useCache
Value indicating whether rendered image tile must be saved.
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:
  • url: URL to an image file, which is stored on server.
  • pos: Tile position on source image.
  • size: Tile size.
  • useCache: Indicates that the rendered image tile is saved on server.
  • scale: The scale (horizontal and vertical) of image tile.
  • image: An instance of Shared.WebImageJS class that represents the source image.
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