ShowJPEGWebTunerDlg example for C++ Builder

void __fastcall TForm1::ShowJPEGWebTunerDlg1Click(TObject *Sender) 
{
   L_INT nRet; 

   LEADDlgWeb1->DlgFlags =DLG_JPEGWEBTUNER_SHOW_INFORMATION |
                          DLG_JPEGWEBTUNER_SHOW_PREVIEW |
                          DLG_JPEGWEBTUNER_SHOW_TOOL_ZOOMLEVEL |
                          DLG_JPEGWEBTUNER_SHOW_SAVETHUMBNAIL |
                          DLG_JPEGWEBTUNER_SHOW_OPTIONS |
                          DLG_JPEGWEBTUNER_SHOW_SAVETHUMBNAIL; 

   LEADDlgWeb1->LEADImage = LEADImage1; 

   nRet= LEADDlgWeb1->ShowJPEGWebTunerDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK  ) 
   {
      if ( LEADDlgWeb1->Progressive ) 
         LEADImage1->ProgressivePasses= 1; 

      if ( LEADDlgWeb1->WithStamp ) 
      {
         LEADImage1->SaveWithStamp ( "c:\\temp\\output.jpg",
                                    LEADDlgWeb1->Format
                                    24, 
                                    LEADDlgWeb1->Quality
                                    32, 
                                    32, 
                                    24 ); 
      }
      else
      {
         LEADImage1->Save ( "c:\\temp\\output.jpg",
                           LEADDlgWeb1->Format
                           24, 
                           LEADDlgWeb1->Quality
                           SAVE_OVERWRITE ); 
      }
   }
}