UpdateUrl Method (original) (raw)
Summary
Update the image or SVG URL of an item.
Syntax
Parameters
url
New image or SVG url. If this is null, then the item will be empty after this method returns.
The viewer will load the data in this URL as a raster image or SVG document depending on the value of LoadUrlAsSvgof item.
Example
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
using Leadtools.Svg;
var item = _imageViewer.GetLargestVisibleItem(ImageViewerItemPart.Content);
if (item != null)
{
_imageViewer.Items.UpdateUrl(item, new Uri(@"http://localhost/myimages/multi/test.tif"));
}