Standard Library function thatrotates and magnifies (or demagnifies) an image on the display screen.
ang The angle of rotation in degrees clockwise.
mag (optional) The magnification or demagnification factor (see Discussion).
xctr (optional) The x subscript of the center of rotation. If omitted, xctr is equal to the number of columns in image divided by 2.
yctr (optional) The y subscript of the center of rotation. If omitted, yctr is equal to the number of rows in image divided by 2.
The magnification factor can be of integer or floating-point data type. It is specified as follows (with 1 being the default value):
mag = 1 | no change |
mag 1 | causes magnification |
mag 1 | causes demagnification |
ROT_INT uses the bilinear interpolation method to rotate and scale the input image.
TIP: If a faster (but less accurate) method of interpolation is needed, use the related function ROT, which uses a nearest neighbor method.
For information on interpolation methods, see Efficiency and Accuracy of Interpolation in Chapter 6 of the PV-WAVE User's Guide.