HTML Image Element associated with this item.
Object.defineProperty(ImageViewerItem.prototype, 'image',
get: function(),
set: function(value)
)
image: HTMLImageElement;
The HTML Image Element associated with this item. Default value is null.
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. Element accepts any element, but may still be null after the set operation. An HTML Image Element set to Element will actually be set to Image, and an HTML5 Canvas Element set to Element will actually be set to Canvas.
Changing the value of this property will fire the ItemChanged event with ImageViewerItemChangedReason.Image. The value of Resolution will not be automatically updated with the DPI of the new image. The user must set this value manually.
If the value of AutoCreateCanvas is true, then setting this value will create a canvas
and set it in
Canvas and the property value will be discarded.
Image property of ImageViewer will update this member if this is the active item when the viewer is used in single item mode.
For more information, refer to Image Viewer Items.
var img = new Image(200, 200);
var item = new lt.Controls.ImageViewerItem();
item.size = lt.LeadSizeD.create(img.width, img.height);
item.text = "Item # 1";
item.image = img;
this._imageViewer.beginUpdate();
this._imageViewer.items.add(item);
this._imageViewer.endUpdate();
Products |
Support |
Feedback: image Property (ImageViewerItem) - 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.