ShowImpressionistDlg example for C++ Builder

void __fastcall TForm1::ShowImpressionistDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgImgEffect1->DlgFlags = DLG_IMPRESSIONIST_SHOW_PREVIEW |
                                 DLG_IMPRESSIONIST_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1->LEADImage = LEADImage1; 
   nRet= LEADDlgImgEffect1->ShowImpressionistDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->Impressionist ( LEADDlgImgEffect1->HorizontalDim
                                 LEADDlgImgEffect1->VerticalDim ); 
   }
}