L_DlgStitch
#include "l_bitmap.h"
L_INT EXT_FUNCTION L_DlgStitch(hWndOwner, pDlgParams)
HWND hWndOwner; |
/* owner of the dialog */ |
LPSTITCHDLGPARAMS pDlgParams; |
/* pointer to a structure */ |
Displays the Stitch dialog box for composing images. Use this dialog to produce a new bitmap that is composed of 1 or more source bitmaps.
Parameter |
Description |
hWndOwner |
Handle of the window that owns the dialog. |
pDlgParams |
Pointer to a STITCHDLGPARAMS structure to initialize the stitch dialog. |
Comments
The Stitch dialog can be seen below:
Returns
SUCCESS_DLG_EXPORTANDEXIT |
"Exit and Export" was selected from the menu and the dialog exited successfully. The pResultingBitmap member of the STITCHDLGPARAMS structure will be updated with the exported bitmap. The user is responsible for freeing the pResultingBitmap member. |
SUCCESS_DLG_EXIT |
"Exit" was selected from the menu or the window was closed, and the dialog exited successfully. |
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
LTDLGIMGEFX 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: |
|
Topics: |
|
|
Example
L_VOID ShowStitchDialog
(
HWND hWnd,
LPDLGBITMAPLIST pList
)
{
BITMAPHANDLE bmpOutput ;
STITCHDLGPARAMS DlgParams ;
memset ( &DlgParams, 0, sizeof ( STITCHDLGPARAMS ) ) ;
DlgParams.uStructSize = sizeof ( STITCHDLGPARAMS ) ;
DlgParams.nResultingBitmapWidth = 320 ;
DlgParams.nResultingBitmapHeight = 200 ;
DlgParams.nResultingBitmapBitsPerPixel = 24 ;
DlgParams.nRes = 72 ;
DlgParams.crBackGround = RGB ( 255, 255, 255 ) ;
DlgParams.pBitmapList = pList ;
DlgParams.hWindowIcon = NULL ;
DlgParams.nCmdShow = SW_SHOW ;
DlgParams.pResultingBitmap = &bmpOutput ;
DlgParams. uResultingBitmapStructSize = sizeof ( BITMAPHANDLE ) ;
L_InitBitmap( &bmpOutput, sizeof ( BITMAPHANDLE ), 0, 0, 0 ) ;
L_DlgInit ( DLG_INIT_COLOR ) ;
if ( SUCCESS == L_DlgStitch ( hWnd, &DlgParams ) )
{
L_FreeBitmap( &bmpOutput ) ;
}
L_DlgFree ( ) ;
}
L_VOID DoStitchDialogSingleImage
(
HWND hWnd,
pBITMAPHANDLE pBitmap
)
{
DLGBITMAPLISTITEM Items [ 1 ] ;
DLGBITMAPLIST bmplist ;
Items [ 0 ].pszDescription = NULL ;
Items [ 0 ].pszFileName = NULL ;
Items [ 0 ].pBitmap = pBitmap ;
bmplist.uStructSize = sizeof ( DLGBITMAPLIST ) ;
bmplist.pBitmapList = Items ;
bmplist.nCount = 1 ;
ShowStitchDialog ( hWnd, &bmplist ) ;
}