L_DlgStitch

Summary

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.

Syntax

#include "l_bitmap.h"

L_LTDLG_API L_INT L_DlgStitch(hWndOwner, pDlgParams)

Parameters

L_HWND hWndOwner

Handle of the window that owns the dialog.

LPSTITCHDLGPARAMS pDlgParams

Pointer to a STITCHDLGPARAMS structure to initialize the stitch dialog.

Comments

The Stitch dialog.

Returns

Value Meaning
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

See Also

Functions

Topics

Example

L_INT DLGStitchFirstExample(HWND hWnd,LPDLGBITMAPLIST  pList) 
{ 
   L_INT nRet; 
   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 ) ; 
 
   nRet = L_InitBitmap( &bmpOutput, sizeof ( BITMAPHANDLE ), 0, 0, 0 ) ; 
   if(nRet != SUCCESS) 
      return nRet; 
 
   nRet = L_DlgInit ( DLG_INIT_COLOR ) ; 
   if(nRet != SUCCESS && nRet != ERROR_DLG_ALREADYINITIATED) 
      return nRet; 
   nRet = L_DlgStitch ( hWnd, &DlgParams ); 
   if(nRet < 1 ) 
      return nRet; 
 
   L_FreeBitmap( &bmpOutput ) ; 
   nRet = L_DlgFree () ; 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 
 
L_INT DLGStitchSecondExample(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 ; 
 
   return (DLGStitchFirstExample(hWnd, &bmplist )) ; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Common Dialog C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.