ShowStitchDlg example for C++ Builder

void __fastcall TForm1::ShowStitchDlg1Click(TObject *Sender) 
{
   L_INT i; 
   L_INT nRet; 
   AnsiString FileNames[3]= { "e:\\image1.jpg", "e:\\image2.jpg", "e:\\image3.jpg" };

   LEADDlgImgEffect1->ItemsCount = 3; 

   for ( i= 0; i < 3; i ++ ) 
   {
      LEADImage2->LoadStamp ( FileNames[i] ); 
      LEADDlgImgEffect1->ItemDescription [i]= IntToStr(i); 
      LEADDlgImgEffect1->ItemFileName [i]= FileNames[i]; 
      LEADDlgImgEffect1->ItemBitmap[i]= LEADImage2->Bitmap; 
   }

   LEADDlgImgEffect1->BitmapWidth = 320; 
   LEADDlgImgEffect1->BitmapHeight = 200; 
   LEADDlgImgEffect1->BitmapBitsPerPixel = 24; 
   LEADDlgImgEffect1->Resolution = 72; 
   LEADDlgImgEffect1->BackgroundColor = RGB ( 255, 255, 255 ); 
   LEADDlgImgEffect1->WindowIcon ->LoadFromFile ( "MyIcon.ico" ); 
   LEADDlgImgEffect1->CommandShow = SW_SHOW; 

   nRet= LEADDlgImgEffect1->ShowStitchDlg ( this ); 
   if ( nRet == SUCCESS_DLG_EXPORTANDEXIT ) 
   {
      LEADImage1->Bitmap= LEADDlgImgEffect1->StitchBitmap
   }
}