Leadtools.Forms.DocumentReaders Namespace > DocumentImageManager Class : GetPageImage Method |
public RasterImage GetPageImage( DocumentReaderPage page )
'Declaration Public Function GetPageImage( _ ByVal page As DocumentReaderPage _ ) As RasterImage
'Usage Dim instance As DocumentImageManager Dim page As DocumentReaderPage Dim value As RasterImage value = instance.GetPageImage(page)
public: RasterImage^ GetPageImage( DocumentReaderPage^ page )
The size of the resulting Leadtools.RasterImage depends on the size of the page (DocumentReaderPage.PixelWidth and DocumentReaderPage.PixelHeight). The image will also contain the same bits/pixel and resolution set in DocumentReaderPage.BitsPerPixel, DocumentReaderPage.DpiX and DocumentReaderPage.DpiY.
Once the page is rendered as a Leadtools.RasterImage object, you can use this object to perform any other image functionality with LEADTOOLS, such as setting it into a viewer control, image processing, saving to other formats, etc.
To get a thumbnail of any page in a PDF document, use GetThumbnail.
For an example, refer to DocumentImageManager.