Replaces the raster image for this page.
public void setImage(RasterImage image)
New raster image to use for this page. This value can be null.
This method works as follows (the "item" is a raster image with the specified resolution):
This method requires that the owner document uses a cache system (Document.HasCache is true), otherwise; an exception will be thrown.
All previously saved raster image objects for this page are purged from the cache.
The page Size and Resolution properties are updated to be the same value as the image. If the image set is null, then these values are set to DocumentPages.DefaultPageSize and DocumentPages.DefaultResolution.
GetImage will check the cache first, hence, subsequent calls will return the value set by this method.
The value of IsImageModified will be set to true after this method returns.
Refer to Loading Using LEADTOOLS Documents Library for more information.
Medical Web Viewer .NET