Load the image data for an item.
protected abstract object LoadItem(
ImageViewerItem item
)
Protected MustOverride Function LoadItem(
ByVal item As ImageViewerItem
) As Object
protected:
virtual Object^ LoadItem(
ImageViewerItem^ item
) abstract
item
Source item
The image object for this item.
This method is called when an item comes into view and is not cached in memory.
Implementers must load the image data from the external source and return it here. This can be one of the following:
RasterImage object. Will used as if it was set in ImageViewerItem.Image.
SvgDocument object. Will used as if it was set in ImageViewerItem.SvgDocument.
null, there is no image data for this object.
You should encapsulate the code inside this method with a try/catch and handle the error correctly. This method will not automatically fire the ItemError event.
For an example, refer to ImageViewerVirtualizer.
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