Update the HTML Element or SVG Element of an item.
ImageViewerItems.prototype.updateElement = function(
item,
element,
resolution
)
updateElement(
item: ImageViewerItem,
element: HTMLElement,
resolution: LeadSizeD
): void;
item
Item to update
element
New HTML Element or SVG Element. 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 is a shortcut for updating the Element, Image, or Canvas property. It is equivalent to:
item.element = element;
item.resolution = resolution;
Element may be null after this method completes; UpdateElement is a shortcut for updating not only Element, but also Image and Canvas. Passing a valid HTML Image Element to UpdateElement sets the Image property just as UpdateImage does. Similarly, passing a valid HTML5 Canvas Element to UpdateElement sets the Canvas property just as UpdateCanvas does. The item can have a value in only one of Image, Element or Canvas. Setting one value will automatically delete the values of the others.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document