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.
SetImage is used to replace the raster image of the page. IsImageModified is used as a flag that indicates that the image of this page has been replaced by the user.
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 (LEADDocument.HasCache is true); otherwise, an exception will be thrown.
All previously saved raster image objects for this page are purged from the cache.
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.
For more information, refer to Loading Using LEADTOOLS Document Library.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries