Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
L_DlgFileConversion
#include "l_bitmap.h"
L_LTDLG_API L_INT L_DlgFileConversion(hWndOwner, pDlgParams)
L_HWND hWndOwner; |
/* owner of dialog */ |
LPFILECONVERSIONDLGPARAMS pDlgParams; |
/* pointer to a structure */ |
Displays the File Conversion dialog box, and gets the options for converting files.
Parameter |
Description |
hWndOwner |
Handle of the window, which owns the dialog. |
pDlgParams |
Pointer to a FILECONVERSIONDLGPARAMS structure to be updated with the values entered by the user through the dialog. Set members of this structure, before calling this function, to set the dialogs initial values. |
Comments
Notes: In the File List in the Source Files(s), the file types listed below are only supported in 32-bit platforms:
Canon RAW Format (*.crw)
DJVU (*.djv)
Kodak Digital Camera KDC (*.kdc)
Kodak Photo CD (*.pcd)
Mr SID (*.sid)
MS Fax (*.awd)
Profession Digital Camera (*.dcr)
In the File Type in the Resulting File(s), the file type listed below is only supported in 32-bit platforms:
MS FAX (AWD) (*.awd)
Returns
SUCCESS_DLG_CLOSE |
The "Close" button was pressed, and the dialog exited successfully. |
SUCCESS_DLG_CANCEL |
The "Cancel" button was pressed, and the dialog exited successfully. |
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
LTDLGFILE For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
L_DlgInit, L_SaveBitmap, L_SaveFile, L_LoadFile, L_LoadBitmap |
Topics: |
|
|
|
|
Example
L_INT DlgFileConversionExample(HWND hWnd) { L_INT nRet; FILECONVERSIONDLGPARAMS DlgParams ; memset ( &DlgParams, 0, sizeof ( FILECONVERSIONDLGPARAMS ) ) ; DlgParams.uStructSize = sizeof ( FILECONVERSIONDLGPARAMS ) ; DlgParams.uOverwrite = DLG_FILECONVERSION_OVERWRITE_SKIP ; DlgParams.pFileFormats = NULL ; DlgParams.nFileFormatsCount = 0 ; DlgParams.bUseLogReport = TRUE ; DlgParams.bRemoveSrcFile = FALSE ; DlgParams.bShowFullPath = TRUE ; DlgParams.bUseOriginalFolder = TRUE ; DlgParams.pszSrcFileList = NULL ; DlgParams.uDlgFlags = DLG_FILECONVERSION_SHOW_PREVIEW | DLG_FILECONVERSION_SHOW_LOADOPTIONS | DLG_FILECONVERSION_SHOW_FILEINFO | DLG_FILECONVERSION_SHOW_PREVIEW_PAGES | DLG_FILECONVERSION_SHOW_RESIZE | DLG_FILECONVERSION_SHOW_ROTATE | DLG_FILECONVERSION_SHOW_NAMINGTEMPLATE | DLG_FILECONVERSION_SHOW_OVERWRITE | DLG_FILECONVERSION_SHOW_OVERWRITE_ALL | DLG_FILECONVERSION_SHOW_ADD | DLG_FILECONVERSION_SHOW_ADDFOLDER | DLG_FILECONVERSION_SHOW_REMOVE | DLG_FILECONVERSION_SHOW_SELECTALL | DLG_FILECONVERSION_SHOW_DELETEORIGINAL ; nRet = L_DlgInit ( DLG_INIT_COLOR ) ; if(nRet != SUCCESS && nRet != ERROR_DLG_ALREADYINITIATED) return nRet; nRet = L_DlgFileConversion ( hWnd, &DlgParams ) ; if(nRet < 1) return nRet; nRet = L_DlgFree () ; if(nRet != SUCCESS) return nRet; return SUCCESS; }