ShowEmbossDlg example for C++ Builder

void __fastcall TForm1::ShowEmbossDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgImgEffect1->Direction = EMBOSS_S; 
   LEADDlgImgEffect1->DlgFlags = DLG_EMBOSS_SHOW_PREVIEW |
                                 DLG_EMBOSS_SHOW_TOOL_ZOOMLEVEL; 

   LEADDlgImgEffect1->LEADImage = LEADImage1; 
   LEADDlgImgEffect1->LEADDlgService = LEADDlgService1; 

   nRet= LEADDlgImgEffect1->ShowEmbossDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->Emboss ( LEADDlgImgEffect1->Direction
               LEADDlgImgEffect1->Depth ); 
   }