CombineWarp example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
TPoint ptSrc;
TPoint aptsDest[4];
LEADImage1->Load( "e:\\Master.jpg", 0, 1, 1 );
LEADImage2->Load ( "e:\\Slave.jpg", 0, 1, 1 );
ptSrc.x= 0;
ptSrc.y= 0;
aptsDest [ 0 ].x= 100;
aptsDest [ 0 ].y= 100;
aptsDest [ 1 ].x= 200;
aptsDest [ 1 ].y= 75;
aptsDest [ 2 ].x= 200;
aptsDest [ 2 ].y= 275;
aptsDest [ 3 ].x= 100;
aptsDest [ 3 ].y= 175;
LEADImage1->CombineWarp(aptsDest, LEADImage2->Bitmap, ptSrc, LEADImage1->BitmapWidth, LEADImage1->BitmapHeight, CBW_BILINEAR );
}