Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

GetThumbnailImage Method






Gets a thumbnail representation of this page.
Syntax
public RasterImage GetThumbnailImage()
'Declaration
 
Public Function GetThumbnailImage() As RasterImage
'Usage
 
Dim instance As DocumentPage
Dim value As RasterImage
 
value = instance.GetThumbnailImage()
public RasterImage getThumbnailImage()
            
public:
RasterImage^ GetThumbnailImage(); 

Return Value

The thumbnail representation of this page.
Remarks

This method uses the value set in DocumentImages.ThumbnailPixelSize to determine the size of the thumbnail image. The returned image data will have 24 bits per pixel.

This method works as follows (the "item" is a thumbnail image with the specified size):

  1. If an item was found in the cache, it is returned right away. This is available if the document was created using the cache system. and Document.CacheOptions contains DocumentCacheOptions.PageThumbnailImage.

  2. GetImage is used to create the thumbnail image.

  3. If this document uses the cache system (Document.HasCache is true), then the RasterImage object is saved to the cache before it is returned. Next time this method is called, the image will be returned from the cache directly without loading it from the file or creating a new instance.

The returned RasterImage object is not used by this Document, the user is responsible for deleting it using RasterImage.Dispose after it has been used.

DocumentImages.GetThumbnailsGrid can be used to return the thumbnails of more than one page using a single call.

The LEADTOOLS Document Viewer uses DocumentPage.GetThumbnailImage and DocumentImages.GetThumbnailsGrid for generating the thumbnails list of a document.

Refer to Loading Using LEADTOOLS Documents Library for more information.

Requirements

Target Platforms

See Also

Reference

DocumentPage Class
DocumentPage Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features