Update the image URL of an item.
ImageViewerItems.prototype.updateUrl = function(item, url, resolution)
updateUrl(item: ImageViewerItem, url: string, resolution: LeadSizeD): void;
item
Item to update
url
New image url. If this is null, then the item will be empty after this method returns.
resolution
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.
This method lets you quickly update the ImageViewerItem.Url value. It is the equivalent of the following code:
var item = imageViewer.items.at(some index);
item.url = url;
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));
}
Products |
Support |
Feedback: updateUrl Method (ImageViewerItems) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.