CImage:Affine
The Affine method applies an affine transformation of shift, scale, and rotation to the image.
bResult = CImage:Affine( nX, nY, nAngle, nScale, bResize=false )
The affine transformation shifts the image center, then applies the rotation and the scale factor.
The following script fragment shifts the image 10 pixels in x and 20.52 in y, rotates -30.25 degrees, and scales by 1.2 times:
|
-- create a new CImage |
|
-- shifts |
|
-- angle and magnification |
|
-- perform the operation on image I |