The HTML Element to use for temporary image loading, when necessary.
Object.defineProperty(ImageLoader.prototype, 'imagesHolder',
get: function(),
set: function(value)
)
imagesHolder: HTMLElement;
The HTML Element to use for temporary image loading. The default value is null.
When loading an SVG-as-IMG (meaning loading an SVG image by url with ImageLoaderUrlMode.ImageUrl in an HTMLImageElement), the width and height of the image may not be immediately available from the browser. In this case, the loaded image is appended to the DOM as a child of ImagesHolder before Done is called. Appending this type of image to the DOM assists in making the width and height available. When the width and height have been computed, Done is fired with Width and Height available as always.
One ImagesHolder can be used for many ImageLoader instances.
When all Done event callbacks have been run, internal code may remove the Element from the ImagesHolder if it still exists there. This should be of no concern to the application or developer; as per the rules of the HTML DOM, the Element is removed from the ImagesHolder automatically when it is appended somewhere else.
It is recommended to use an ImagesHolder element that has styles applied making it invisible to the page:
.my-app-images-holder {
visibility: hidden;
}
However, the ImagesHolder should not have display: none
, as this may prevent proper computation of width and height.
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
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.