CImage:Shift
The Shift method moves the image in the x and y directions. This transformation preserves the world coordinate calibration of the image, if one exists.
bResult = CImage:Shift( x, y ) |
Shifts are considered positive if the image is moved toward increasing x or increasing y. If either of the shifts is a fractional pixel amount, the image is resampled. The image is not resampled if both x and y shifts are integral values.
Suppose an image is displayed in a CImageView named V. The following script fragment shifts the displayed image 10 pixels in x and 20.52 pixels in y:
|
-- attach the current displayed image |
|
-- perform the operation |
|
-- update the display after the shift |