ShowSwirlDlg example for C++ Builder
void __fastcall TForm1::ShowSwirlDlg1Click(TObject *Sender)
{
L_INT nRet;
LEADDlgImgEffect1->DlgFlags = DLG_SWIRL_SHOW_PREVIEW |
DLG_SWIRL_SHOW_TOOL_ZOOMLEVEL;
LEADDlgImgEffect1->LEADImage = LEADImage1;
nRet= LEADDlgImgEffect1->ShowSwirlDlg ( this );
if ( nRet == SUCCESS_DLG_OK )
{
LEADImage1->Swirl ( LEADDlgImgEffect1->Angle,
LEADDlgImgEffect1->CenterPoint );
}
}