Code samples for warpAffine (Automatically generated by the Every Method demo).
// Automated test of warpAffine - Typical Values
// TIEVisionImage.warpAffine - Skew: 20%, Scale: 90%, Border: ievBORDER_CONSTANT, Inverse: false
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 440.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 360.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpAffine - Alpha Channel - Typical Values
// TIEVisionImage.warpAffine - Skew: 20%, Scale: 90%, Border: ievBORDER_CONSTANT, Inverse: false
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 440.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 360.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpAffine - 32-Bit RGBA - Typical Values
// TIEVisionImage.warpAffine - Skew: 20%, Scale: 90%, Border: ievBORDER_CONSTANT, Inverse: false
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 440.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 360.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpAffine - Random Values
// TIEVisionImage.warpAffine - Skew: 42%, Scale: 140%, Border: ievBORDER_REPLICATE, Inverse: true
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 728.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 560.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_REPLICATE, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();

// Automated test of warpAffine - Alpha Channel - Random Values
// TIEVisionImage.warpAffine - Skew: 42%, Scale: 140%, Border: ievBORDER_REPLICATE, Inverse: true
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 728.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 560.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_REPLICATE, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();

// Automated test of warpAffine - 32-Bit RGBA - Random Values
// TIEVisionImage.warpAffine - Skew: 42%, Scale: 140%, Border: ievBORDER_REPLICATE, Inverse: true
// Move the top-left, top-right and bottom-left corners
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 400, 0 )); dstPoints.push_back( IEVisionPoint2f( 728.0, 0 ));
srcPoints.push_back( IEVisionPoint2f( 0, 400 )); dstPoints.push_back( IEVisionPoint2f( 0, 560.0 ));
M := IEVisionLib().createMath().getAffineTransform( srcPoints, dstPoints );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpAffine( M, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_REPLICATE, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();
