VintaSoft Barcode .NET SDK v10.0
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.
A format in which the thumbnail must be returned.
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 (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
    getThumbnail Method
    In This Topic
    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, format, successFunc, errorFunc);
    function getThumbnail( 
       w : number,
       h : number,
       useCache : boolean,
       format : object,
       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.
    format
    A format in which the thumbnail must be returned.
    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:
    • fileId (string): Image file identifier.
    • imageParam (object): An object with information about image:
      • imageSize (object): An object that contains image width and height.
      • imageResolution (object): An object that contains image resolution.
      • pixelFormat (number): The image pixel format.
      • isVector (boolean): Indicates that the image has vector decoder.
    • image (object): 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 (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.
    Browser Compatibility
    9
    5
    11
    5
    See Also

    Reference

    WebImageJS type