ImageGear for C and C++ on Windows v19.2 - Updated
IG_gui_save_pageinsert_dlg
API Reference Guide > GUI Component API Reference > GUI Component Functions Reference > Save Functions > IG_gui_save_pageinsert_dlg

This function shows the insert page dialog that can be used to specify the saving parameters for the inserted page.

Declaration:

 
Copy Code
BOOL  ACCUAPI  IG_gui_save_pageinsert_dlg(
        HWND hWnd,
        LPAT_DIB lpDIB,
        LPAT_IGGUI_FORMAT_CB lpFnCB,
        LPAT_IGGUI_SAVEPAGE_INFO lpOutInfo
);

Arguments:

Name Type Description
hWnd HWND A handle of the parent window.
lpDIB LPAT_DIB A pointer to the DIB.
lpFnCB LPAT_IGGUI_FORMAT_CB A set of callback functions that is used to get information about the file. Pointer to the AT_IGGUI_FORMAT_CB structure.
lpOutInfo LPAT_IGGUI_SAVEPAGE_INFO Stores information about how to save image page. Pointer to the AT_IGGUI_SAVEPAGE_INFO structure.

Return Value:

If the user specifies parameters and clicks the OK button, the return value is non-zero. If the user cancels or closes the dialog box or an error occurs, the return value is zero.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

GUI Windows

Example:

 
Copy Code
AT_IGGUI_FORMAT_CB          fcb;
LPAT_IGGUI_OFNCUSTDATA      lpofnCustData;
// lpofnCustData initialization
...
LPAT_IGGUI_SAVEFILE_INFO    lp_sf_info =
lpofnCustData->lp_sf_info; 
LPAT_IGGUI_SAVEPAGE_INFO    lp_sp_info = &(lp_sf_info->PageInfo); 
...
fcb.lpfnFormatDetect  = IG_GUI_CB_detect_file;
fcb.lpfnPageCountGet  = IG_GUI_CB_pagecount_file;
fcb.lpfnPageInfoGet   = IG_GUI_CB_info_file;
fcb.lpfnPageLoad      = IG_GUI_CB_load_file;
fcb.lpPrivate         = FileName;
...
IG_gui_save_pageinsert_dlg( hDlg, lpDIB, &fcb, lp_sp_info );