Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

UpdateUrl Method

Show in webframe
Example 
Item to update
New image url. If this is null, then the item will be empty after this method returns.
The resolution to use of the image in dots/inch (or DPI). A value of 0,0 or Empty means use the default image resolution which is 96 pixels.
Update the image URL of an item.
Syntax
 function Leadtools.Controls.ImageViewerItems.updateUrl( 
   item ,
   url ,
   resolution 
)

Parameters

ParameterTypeDescription
itemImageViewerItemItem to update
urlstringNew image url. If this is null, then the item will be empty after this method returns.
resolutionLeadSizeDThe resolution to use of the image in dots/inch (or DPI). A value of 0,0 or Empty means use the default image resolution which is 96 pixels.
Remarks

This method lets you quickly update the ImageViewerItem.Url value. It is the equivalant of the following code:


            var item = imageViewer.items.at(some index);
            item.url = url;
            
Example
var item = this._imageViewer.getLargestVisibleItem(lt.Controls.ImageViewerItemPart.content);
if (item != null) {
   this._imageViewer.items.updateUrl(item, "http://demo.leadtools.com/images/png/ocr3.png", lt.LeadSizeD.create(96, 96));
}
See Also

Reference

ImageViewerItems Object
ImageViewerItems Members

Error processing SSI file