ShowGrayScaleDlg example for C++ Builder

void __fastcall TForm1::ShowGrayScaleDlg1Click(TObject *Sender) 
{
   LEADDlgColor1->RedFactor = 400; 
   LEADDlgColor1->GreenFactor = 300; 
   LEADDlgColor1->BlueFactor = 300; 
   LEADDlgColor1->DlgFlags = DLG_GRAYSCALE_SHOW_PREVIEW |
                             DLG_GRAYSCALE_SHOW_TOOL_ZOOMLEVEL; 
   LEADDlgColor1->LEADImage = LEADImage1; 
   LEADDlgColor1->LEADDlgService = LEADDlgService1; 
   LEADDlgColor1->ShowGrayScaleDlg ( this ); 
}