ImageGear for C and C++ on Windows v19.10 - Updated
IG_GUI_page_thumbnail_size_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Page Functions > IG_GUI_page_thumbnail_size_get

This function returns the current width and height settings for the thumbnail images in the GUI Page Sorter window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_page_thumbnail_size_get(
        HWND hwndPage, 
        LPINT lpThumbWidth, 
        LPINT lpThumbHeight 
); 

Arguments:

Name Type Description
hwndPage HWND Windows handle to the GUI Page Sorter window.
lpThumbWidth LPINT Returns the width setting for the thumbnails in the GUI Page Sorter window.
lpThumbHeight LPINT Returns the height setting for the thumbnails in the GUI Page Sorter window.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Example:

 
Copy Code
HIGEAR hIGear;  /* HIGEAR handle of image   */
AT_ERRCOUNT nErrcount; /* tally of ImageGear errors on the stack  */
INT nHeight, nWidth; /* Height and width of thumbnails in Sorter */
HWND hwndPage;       /* Windows handle for Page Sorter    */
nErrcount = IG_GUI_page_thumbnail_size_get(hwndPage, &nWidth, &nHeight);
if (nHeight > 60){
        nErrcount = IG_GUI_page_thumbnail_size_set(hwndPage,nWidth*nHeight/60, 60);
}

Remarks:

To set the dimensions of the thumbnails, use IG_GUI_page_thumbnail_size_set().