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.
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