VintaSoft Barcode .NET SDK v10.0
getThumbnail Method
Vintasoft.Shared Namespace > WebImageJS type : getThumbnail Method
Thumbnail width in pixels.
Thumbnail height in pixels.
Indicates that rendered thumbnail must be saved in cache on server.
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 thumbnail.
Syntax
var instance = new Vintasoft.Shared.WebImageJS(imageSource, pageIndex);
var value; // Type: any
value = instance.getThumbnail(w, h, useCache, successFunc, errorFunc);
function getThumbnail( 
   w : number,
   h : number,
   useCache : boolean,
   successFunc : object,
   errorFunc : object
) : any;

Parameters

w
Thumbnail width in pixels.
h
Thumbnail height in pixels.
useCache
Indicates that rendered thumbnail must be saved in cache on server.
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.
  • imageParam: An object with information about image:
    • imageSize: An object that contains image width and height.
    • imageResolution: An object that contains image resolution.
    • pixelFormat: The image pixel format.
    • isVector: Indicates that the image has vector decoder.
  • 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.
Browser Compatibility
9
5
11
5
See Also

Reference

WebImageJS type