You are here: GdPicture.NET > Documentation > Classes > GdViewer Class > GdViewer Methods > Getting Thumbnails > GetPageThumbnail Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdViewer.GetPageThumbnail Method

Creates a High Quality thumbnail (returns a GdPicture image) of custom size from a page of the displayed document. 

This function fits the image thumbnail within a rectangle of specified dimensions having a specified background color. 

This GdPicture image can be used by another GdPictureImaging or GdViewer object.

C#
public int GetPageThumbnail(
    int Width, 
    int Height, 
    int Page, 
    Color BackColor
);
Visual Basic
Public Function GetPageThumbnail(
    ByVal Width As Integer, 
    ByVal Height As Integer, 
    ByVal Page As Integer, 
    ByVal BackColor As Color
) As Integer
Parameters
Parameters 
Description 
Width 
The width of the thumbnail to create.  
Height 
The height of the thumbnail to create.  
Page 
The page of the document.  
BackColor 
Color Object. Background color of the thumbnail.  
Returns

GdPicture Image Identifier. The Image thumbnail.

To delete the created GdPicture image from the memory you must use the ReleaseGdPictureImage() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.