PlaneBend example for C++ Builder

void __fastcall TForm1::PlaneBendClick(TObject *Sender)
{
   TPoint ptCenter;

   ptCenter.x= (int)( LEADImage1->BitmapWidth );
   ptCenter.y= (int)( LEADImage1->BitmapHeight /2 );

   LEADImage1->PlaneBend(ptCenter, 0, (int)(LEADImage1->BitmapHeight), (int)(LEADImage1->BitmapWidth/2), -1, 0, 25, 100, 0, 0, 50, RGB(255,0,0), RGB(0,0,0), PLANE_DOWN | PLANE_UP | PLANE_FILL_CLR);
}