Shows the file save dialog and returns the file name, the page number to save or replace, and also the format identifier if the file format of the image is detected.
Declaration:
![]() |
|
---|---|
BOOL ACCUAPI IG_gui_save_page_dlg ( HWND hWnd, LPCHAR lpTitle, HIGEAR hIGear, LPAT_LMODE lpnSaveList, UINT nSListSize, LPAT_IGGUI_SAVEFILE_INFO lpSFInfo ); |
Arguments:
Name | Type | Description |
hWnd | HWND | A handle of the parent window. |
lpTitle | LPCHAR | A dialog title. |
hIGear | HIGEAR | A pointer to the HIGEAR. |
lpnSaveList | LPAT_MODE | A format list. |
nSListSize | UINT | A format list size. |
lpSFInfo | LPAT_IGGUI_SAVEFILE_INFO | Stores information about how to save image file. A pointer to the AT_IGGUI_SAVEFILE_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 Professional.
Sample:
Color, Image Processing, JPEG, Medical, Palette Edit, Pixel Access, Print, Annotation, Filters, ImageClean, Multimedia
Example:
![]() |
|
---|---|
#include "IG_gui_common.h" AT_IGGUI_SAVEFILE_INFO SFInfo; HIGEAR hIGear; LPAT_DIB lpDIB memset( &SFInfo, 0, sizeof(SFInfo) ); IG_image_DIB_pntr_get( hIGear, &lpDIB ); IG_gui_save_page_dlg( hWnd, NULL, hIGear, NULL, 0, &SFInfo ); |