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:
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 );
|