ShowPicturizeDlg example for C++ Builder

void __fastcall TForm1::ShowPicturizeDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgImgEffect1->BitmapWidth = LEADImage1->BitmapWidth; 
   LEADDlgImgEffect1->BitmapHeight = LEADImage1->BitmapHeight; 
   nRet= LEADDlgImgEffect1->ShowPicturizeDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->Picturize ( LEADDlgImgEffect1->DirectoryPath
                             LEADDlgImgEffect1->PicturizeResizeFlags
                             LEADDlgImgEffect1->CellWidth
                             LEADDlgImgEffect1->CellHeight ); 
   }