Replaces the raster image for this page.
public void SetImage(
RasterImage image
)
Public Sub SetImage(
ByVal image As RasterImage
)
public:
void SetImage(
RasterImage^ image
)
public void setImage(RasterImage image)
image
New raster image to use for this page. This value can be null.
GetImage and GetImage(resolution) are used to get a raster image representation of this page. All document types support this method and it will always return a value object.
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.
If the value of the IsReadOnly property of LEADDocument is true, then the user cannot modify this document and an exception will be thrown.
All previously saved raster image objects for this page are purged from the cache.
4.An image is added to the cache by serializing the RasterImage object. The original object is not disposed and is still owned by the user. If image is null, then a "null" item is added to 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.
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